Thank you for considering contributing to this package!
-
Fork the repository
-
git clone yourname/composer-unused
-
Download the ext-ds extension and make sure it is enabled in php.ini using the installation instructions
- Windows users - Place the DLL file in the php/ext folder in your *ampp directory
-
Download the ext-zend-opcache extension tgz file and compile it and make sure it is enabled in php.ini using the installation instructions
-
Windows users
-
Download a pre-compiled DLL file
-
Place the DLL file in the php/ext folder in your *ampp directory
-
Run the following lines:
zend_extension=php_opcache.dll opcache.enable=On opcache.enable_cli=On
-
-
-
Run
composer install
- Run
docker-compose up -d
- Use the corresponding created containers
- composer-unused-7.4
- composer-unused-8.0
- composer-unused-8.1
- Make your changes
- Run
composer check
- Create your Pull-Request
To validate your changes against a project of yours, you can require your current cloned composer-unused
as a global dependency using a local path. So your changes would have immediate effects.
To do so, go to your global composer installation, typically somewhere around ~/.composer/composer.json
, and add
composer-unused
as repository using the path
(see docs)
configuration of composer.
{
"repositories": [
{
"type": "path",
"url": "<path to your clone>"
}
]
}
After you have done this you can require your local clone as a global dependency (e.g. branch feature/awesome
)
$ composer require --dev icanhazstring/composer-unused:dev-feature/awesome
This should setup a symlink and you are ready to go.
You can get more information about the list of all defined scripts (See composer.json).
$ composer run-script --list