Download the PHP package imponeer/composer-custom-commands without Composer
On this page you can find all versions of the php package imponeer/composer-custom-commands. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imponeer/composer-custom-commands
More information about imponeer/composer-custom-commands
Files in imponeer/composer-custom-commands
Package composer-custom-commands
Short Description Adds possibility to define console commands as composer commands with Symfony console component syntax
License MIT
Informations about the package composer-custom-commands
Composer Custom Commands
Composer plugin that adds a possibility to define console commands as composer commands with Symfony console component syntax.
Usage
To start using this plugin you need just to do 4 easy steps:
1. Add plugin into your composer project:
Easiest way to do that is to execute composer command from console:
2. Create class that that implements new command
It should be look something like this:
3. Create or edit config section in projects composer.json and add there section custom-commands
with commands
key and add there PHP class names of commands that should be added to composer
This should look something like this:
If you need that some script should be executed before every command (f.e. you need to define some constants), you can add there boot
key with value that is filename relative from place where composer.json is.
In that case your composer.json should look similar to this:
4. If you did everything correctly, you will be able to use new composer command that is embeded in your project.
How to contribute?
If you want to add some functionality or fix bugs, you can fork, change and create pull request. If you not sure how this works, try interactive GitHub tutorial.
If you found any bug or have some questions, use issues tab and write there your questions.
All versions of composer-custom-commands with dependencies
php Version >=7.2
symfony/console Version *
imponeer/project-cached-code-generator-from-composer.json-data-base Version ^0.1.3