dev-master
9999999-devComposer tools and UI for Composer
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Composer tools and UI for Composer
ComposerUI for Composer, (*1)
Note: This is just a try for composer, and should be considered as experimental., (*2)
Via this issue at Composer, we started with the idea to build
a general UI for composer. However, the UI couldn't exist without a helper to create and execute commands., (*3)
At the moment we are working on the helper. The goal is that the helper can be used in future without the UI. The UI will be the second part., (*4)
You can install this package via... Yeah... Composer:, (*5)
composer require bobmulder/composer-ui:dev-master
The following commands are supported for now: - composer - install - archive - update - require - remove, (*6)
You can start using composer by creating an instance of the ComposerUI/ComposerHelper-class:, (*7)
$composer = new ComposerHelper();
You can configure the working path via:, (*8)
$composer = new ComposerHelper('/custom/path');
Now you are ready to go!, (*9)
On every command you can use every option that is available at composer., (*10)
Note: Read this to get a list of commands and options: https://getcomposer.org/doc/03-cli.md, (*11)
Note: Need a specific command? Open up an issue or better a pull request!, (*12)
Just initializes composer. Nothing special., (*13)
$composer->composer();
The install command reads the composer.json file from the current directory, resolves the dependencies, and installs
them into vendor., (*14)
$composer->install();
This command is used to generate a zip/tar archive for your entire project., (*15)
$composer->archive();
Note: Composer itself supports to archive specific packages, but this library doesn't support that yet..., (*16)
In order to get the latest versions of the dependencies and to update the composer.lock file, you should use the
update command., (*17)
$composer->update();
The require command adds new packages to the composer.json file from the current directory. If no file exists one will
be created on the fly., (*18)
$composer->requirePackages([
'vendor/package' => '2.x',
'vendor/secondpackage' => 'dev-master',
'vendor/thirthpackage',
]);
The remove command removes packages from the composer.json file from the current directory., (*19)
$composer->removePackages([ 'vendor/package' => '2.x', 'vendor/secondpackage' => 'dev-master', 'vendor/thirthpackage', ]);, (*20)
We would like to refer you to the composer docs itself: https://getcomposer.org/doc/03-cli.md, (*21)
If you need help, don't fear to get in touch via gitter: https://gitter.im/bobmulder/composer-ui, (*22)
[]
(https://gitter.im/bobmulder/composer-ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge), (*23)
Composer tools and UI for Composer