I have cloned repository from GitHub. So I am wondering how to build my own composer instance from the source files?
I have cloned repository from GitHub. So I am wondering how to build my own composer instance from the source files?
It also took me a while to find it, but the installation from source instructions are listed here in the Composer repository.
Basically you can install Composer from source with Composer, e.g. composer install. Very meta! Then you can use the Composer you've installed from source with path-where-you-cloned-composer/bin/composer. See the full instructions copied below:
- Run
git clone https://github.com/composer/composer.git- Download the
composer.pharexecutable- Run Composer to get the dependencies:
cd composer && php ../composer.phar installYou can run the test suite by executing
vendor/bin/phpunitwhen inside the composer directory, and run Composer by executing thebin/composer. To test your modified Composer code against another project, runphp /path/to/composer/bin/composerinside that project's directory.
(If you already have Composer installed globally, you don't need to do step 2.)