Back to directory
marcinharasim avatar
marcinharasim / symfony-grumphp

symfony-grumphp

Configured GrumPHP with bunch of tools for static code analysis Symfony Framework

19

Stars

2

Forks

1

Watchers

MIT

License

Symfony + GrumPHP

symfony-grumphp is configured GrumPHP with bunch of tools for static code analysis mainly based on PSRs and Symfony Coding Standards for Symfony Framework projects.

GitHub release (latest SemVer) GitHub Packagist (custom server) GitHub last commit Travis (.org) Coveralls github

Included tools

Requirements

PHP needs to be a minimum version of PHP 7.3.
Symfony Framework needs to be a minimum version of Symfony Framework 4.0 or 5.0.

Installation

To install symfony-grumphp, install Composer, execute the following command:

composer require --dev sci3ma/symfony-grumphp

and create (or update) configuration files:

./vendor/bin/symfony-grumphp install

Configuration

You can, and perhaps you should, check and customize all configured tasks in grumphp.yml file in project root folder.

GrumPHP should be enabled by default but you can also enable GrumPHP yourself:

./vendor/bin/grumphp git:init

or disable GrumPHP:

./vendor/bin/grumphp git:deinit

You can find more GrumPHP configuration here.

Test code with the database

If you need to test code that interact with the database you need to instal dama/doctrine-test-bundle:

composer require --dev dama/doctrine-test-bundle

and uncomment extension <extension class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" /> in phpunit.xml.dist.
Read more about how to Test Code that Interacts with the Database

Uninstall

If you want to uninstall this library remove configuration files first:

./vendor/bin/symfony-grumphp uninstall

then remove package:

composer remove sci3ma/symfony-grumphp

Force run

You can run tests/checks our code without commit manually:

./vendor/bin/grumphp run

Releases

Apr 22, 2021

Version 3.2.2

Download .zip

fix PHP version in README file fix travis tests

Feb 26, 2021

Version 3.2.1

Download .zip

remove sensiolabs/security-checker from composer.json

Feb 20, 2021

Version 3.2.0

Download .zip

update composer to v2 change Sensio Security Checker to Enlightn Security Checker upgrade dependencies add support to PHP 8.0

Oct 8, 2020

Version 3.1.1

Download .zip

improved grumphp tasks priorities improved README.md file changed name for php_cs.php file to .php_cs migrated from travis-ci.org to travis-ci.com and changed badge URL

Aug 27, 2020

Version 3.1.0

Download .zip

dropped support for PHP 7.2 dropped support for GrumPHP 0.15, 0.16, 0.17, 0.18 and 0.19 dropped support for PhpCpd 4.1 and 5.0 updated grumphp.yaml file updated dependencies updated phpcsfixer grumphp...