Pickle installs PHP extensions easily on all platforms.
Clone this repository and install dependencies with Composer:
$ composer install
And then, run, in your extension directory, the following command:
$ bin/pickle validate
$ bin/pickle install
For any help, run:
$ bin/pickle -h
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 the PSR-1 and PSR-2 coding standards.
To avoid CS issues, you should use php-cs-fixer:
$ php-cs-fixer fix src/
Support is available via the issue
tracker in the Github project page
or via IRC, EFNet, channel #pickle
.
Unit tests are written using atoum.
You will get atoum, among other dependencies, when running composer install
.
To run tests, you will need to run the following command:
$ vendor/bin/atoum
# To run tests in a loop, ideal to do TDD
$ vendor/bin/atoum --loop
There are also some Behat tests.
You will get Behat, among other dependencies, when running composer install
.
To run tests, you will need to run the following command:
$ vendor/bin/behat
# To choose the test suite you want to run
$ vendor/bin/behat -s pickle
Pickle is covered using 4 Behat tests suites:
pickle
runs tests against pickle's sourcespickle_phar
runs tests against pickle's Phar which you have to manually buildpecl
tests PECL extensions conversion with pickle's sourcesphar_pecl
tests PECL extensions conversion with pickle's Phar