Download the PHP package mrjoops/symfony-service-devtools without Composer
On this page you can find all versions of the php package mrjoops/symfony-service-devtools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrjoops/symfony-service-devtools
More information about mrjoops/symfony-service-devtools
Files in mrjoops/symfony-service-devtools
Package symfony-service-devtools
Short Description A set of useful tools for building Symfony services.
License MIT
Informations about the package symfony-service-devtools
mrjoops/symfony-service-devtools
A set of useful tools for building Symfony services. To date, it includes:
- Code quality tools with gently defaults
- Testing tools
- A ready to go Docker environment
- Configuration for CI tool Bitbucket Pipelines
- a Makefile to ease interaction with these tools
Installation
You can install it with Composer.
Prerequisites
Although both are optional, please ensure you have installed docker-compose alongside Docker on your system.
If you use Symfony Flex, you can safely jump to the Usage section. Otherwise you must copy the following files in your project to enjoy all the features:
- .env.test
- .php_cs.dist
- bitbucket-pipelines.yml
- docker-compose.yml
- Dockerfile
- dredd.yml
- Makefile
- phpcs.xml.dist
- phpmd.xml
- phpstan.neon.dist
- phpunit.xml.dist
Don't forget to add the following lines in your .gitignore
file:
Feel free to edit these files to fit your needs.
Usage
Quality tools
You can run all the code quality tools with this command:
You can run them individually:
You can also run the fixers with this command:
And again, you can run them individualy:
Testing tools
You can run all the testing tools with this command:
You can run them individually:
A note about Dredd
Since Dredd is a NodeJS tool, it is not installed with mrjoops/symfony-service-devtools
. However it is included in the Docker image (see below) and ready to go!
Docker
You can add services to the docker-compose.yml
file.
Then you can start your services with the following command:
The base Docker image used here is mrjoops/ppm which uses PHP-PM, so you have an efficient PHP web server up and running!
Continuous integration
A configuration for Bitbucket Pipelines exists, it will run all checks and tests on pull requests.
Opinionated advices
- Do yourself a favor and create this alias:
alias dk='docker-compose exec app'
so you'll just have to prefix your commands withdk
to have them executed in the container. - It's a good idea to add
make check
(ordk make check
) to your git workflow by creating a pre-commit hook.
All versions of symfony-service-devtools with dependencies
mavimo/phpstan-junit Version ^0.2.3
phpmd/phpmd Version ^2.7
phpstan/extension-installer Version ^1.0
phpstan/phpstan-symfony Version ^0.11.6
squizlabs/php_codesniffer Version ^3.4
symfony/test-pack Version ^1.0