Git Product home page Git Product logo

compy's Introduction

compy is a wrapper to composer for Symfony2 projects, based on an easier to use YAML file.

Usage

You can use compy just like composer, except you modify the compy.yml, instead of the composer.json:

alice@acme$ bin/compy --version
Compy version 0.1.6
Composer version aa1c093

You should only run compy from the directory your compy.yml or composer.json are.

Your compy.yml

The YAML format is easier to read, easier to write and allows you to add comments, like in the following snippet:

license: MIT
require:
    symfony/yaml:      '>=2.0'     # This is a comment
    symfony/console:   '>=2.0'
    composer/composer:  dev-master

This is especially useful in large projects with complex dependencies.

(Automatic) Configuration

When run the first time, compy converts automatically any composer.json present. If you modify your composer.json, compy will automatically notice it when you invoke it, and convert it to compy.yml. compy backs up your compy.yml to compy.yml~compy~, before any change is made.

Installation

System-wide installation is not supported at the moment.

You can install compy in your project by copying files by hand, or through composer:

installing via composer

  1. require the package rev22/compy via composer

     composer require rev22/compy:dev-master
    
  2. now you can use compy from the 'vendor/bin/' directory:

     user> vendor/bin/compy --version
    

copying files by hand:

  1. copy the contents of the bin/ directory from this code archive to your symfony project's bin/ or app/ directory;
  2. add a dependency to composer/composer in your composer.json and run composer install
  3. make sure the composer tool is installed system-wide

License

compy is available under the terms of a MIT-style license. Please consult the file LICENSE for details.

History of the tool

The compy script was brought to you by Michele Bini. The package includes Oleg Stepura's convert-config tool, which was forked from Igor Wiedler's composer-yaml.

compy's People

Contributors

igorw avatar olegstepura avatar rev22 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.