2015-01-07 20:47:00 +00:00
Contributing to Composer
========================
2015-05-10 14:20:27 +00:00
Please note that this project is released with a
2021-10-14 14:21:47 +00:00
[Contributor Code of Conduct ](https://github.com/composer/composer/blob/main/CODE_OF_CONDUCT.md ).
2015-05-10 14:20:27 +00:00
By participating in this project you agree to abide by its terms.
2015-06-05 12:18:50 +00:00
Reporting Issues
----------------
2015-06-05 12:32:45 +00:00
When reporting issues, please try to be as descriptive as possible, and include
2015-06-05 12:18:50 +00:00
as much relevant information as you can. A step by step guide on how to
reproduce the issue will greatly increase the chances of your issue being
resolved in a timely manner.
For example, if you are experiencing a problem while running one of the
commands, please provide full output of said command in very very verbose mode
(`-vvv`, e.g. `composer install -vvv` ).
If your issue involves installing, updating or resolving dependencies, the
chance of us being able to reproduce your issue will be much higher if you
share your `composer.json` with us.
2018-11-26 12:43:24 +00:00
Coding Style Fixes
------------------
We do not accept CS fixes pull requests. Fixes are done by the project maintainers when appropriate to avoid causing too many unnecessary conflicts between branches and pull requests.
2016-11-17 13:40:36 +00:00
Security Reports
----------------
Please send any sensitive issue to [security@packagist.org ](mailto:security@packagist.org ). Thanks!
2015-01-07 20:47:00 +00:00
Installation from Source
------------------------
2015-06-05 12:18:50 +00:00
Prior to contributing to Composer, you must be able to run the test suite.
To achieve this, you need to acquire the Composer source code:
2015-01-07 20:47:00 +00:00
1. Run `git clone https://github.com/composer/composer.git`
2. Download the [`composer.phar` ](https://getcomposer.org/composer.phar ) executable
3. Run Composer to get the dependencies: `cd composer && php ../composer.phar install`
2021-05-20 09:04:19 +00:00
You can run the test suite by executing `vendor/bin/simple-phpunit` when inside the
2021-08-19 11:21:04 +00:00
composer directory, and run Composer by executing the `bin/composer` .
To test your modified Composer code against another project, run
`php /path/to/composer/bin/composer` inside that project's directory.
2015-01-07 20:47:00 +00:00
Contributing policy
-------------------
Fork the project, create a feature branch, and send us a pull request.
To ensure a consistent code base, you should make sure the code follows
2015-08-11 06:37:24 +00:00
the [PSR-2 Coding Standards ](http://www.php-fig.org/psr/psr-2/ ). You can also
run [php-cs-fixer ](https://github.com/FriendsOfPHP/PHP-CS-Fixer ) with the
configuration file that can be found in the project root directory.
2015-01-07 20:47:00 +00:00
2015-08-11 06:37:24 +00:00
If you would like to help, take a look at the [list of open issues ](https://github.com/composer/composer/issues ).