{"id":15450354,"url":"https://github.com/sci3ma/symfony-grumphp","last_synced_at":"2025-04-19T22:58:28.366Z","repository":{"id":43061665,"uuid":"173364788","full_name":"sci3ma/symfony-grumphp","owner":"sci3ma","description":"Configured GrumPHP with bunch of tools for static code analysis Symfony Framework","archived":false,"fork":false,"pushed_at":"2021-04-22T17:10:54.000Z","size":205,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T13:51:17.945Z","etag":null,"topics":["clean-code","code-quality","grumphp","phmd","php-cs-fixer","phpstan","phpunit","standards","static-analysis","symfony","symfony-grumphp"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sci3ma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-01T20:36:43.000Z","updated_at":"2024-10-16T22:17:16.000Z","dependencies_parsed_at":"2022-09-22T14:41:22.803Z","dependency_job_id":null,"html_url":"https://github.com/sci3ma/symfony-grumphp","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sci3ma%2Fsymfony-grumphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sci3ma%2Fsymfony-grumphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sci3ma%2Fsymfony-grumphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sci3ma%2Fsymfony-grumphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sci3ma","download_url":"https://codeload.github.com/sci3ma/symfony-grumphp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249826664,"owners_count":21330673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean-code","code-quality","grumphp","phmd","php-cs-fixer","phpstan","phpunit","standards","static-analysis","symfony","symfony-grumphp"],"created_at":"2024-10-01T21:04:48.418Z","updated_at":"2025-04-19T22:58:28.338Z","avatar_url":"https://github.com/sci3ma.png","language":"PHP","readme":"# Symfony + GrumPHP\n\n`symfony-grumphp` is configured GrumPHP with bunch of tools for static code analysis mainly based on [PSRs](https://www.php-fig.org/psr/) and [Symfony Coding Standards](https://symfony.com/doc/current/contributing/code/standards.html) for Symfony Framework projects.\n\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/sci3ma/symfony-grumphp?style=flat-square)](https://github.com/sci3ma/symfony-grumphp)\n[![GitHub](https://img.shields.io/github/license/sci3ma/symfony-grumphp?style=flat-square)](https://github.com/sci3ma/symfony-grumphp/blob/master/LICENSE)\n[![Packagist (custom server)](https://img.shields.io/packagist/dt/sci3ma/symfony-grumphp?style=flat-square)](https://packagist.org/packages/sci3ma/symfony-grumphp/stats)\n[![GitHub last commit](https://img.shields.io/github/last-commit/sci3ma/symfony-grumphp?style=flat-square\u0026logo=github)](https://github.com/sci3ma/symfony-grumphp/commits/master)\n[![Travis (.org)](https://img.shields.io/travis/sci3ma/symfony-grumphp?style=flat-square\u0026logo=travis-ci)](https://travis-ci.com/sci3ma/symfony-grumphp)\n[![Coveralls github](https://img.shields.io/coveralls/github/sci3ma/symfony-grumphp?logo=coveralls\u0026style=flat-square)](https://coveralls.io/github/sci3ma/symfony-grumphp)\n\n## Included tools\n* [GrumPHP](https://github.com/phpro/grumphp): `phpro/grumphp`\n* [PhpCpd](https://github.com/sebastianbergmann/phpcpd): `sebastian/phpcpd`\n* [PHP-CS-FIXER](https://github.com/FriendsOfPHP/PHP-CS-Fixer): `friendsofphp/php-cs-fixer`\n* [PHPLint](https://github.com/php-parallel-lint/PHP-Parallel-Lint): `php-parallel-lint/php-parallel-lint`\n* [PhpMd](https://github.com/phpmd/phpmd): `phpmd/phpmd`\n* [PHPStan](https://github.com/phpstan/phpstan): `phpstan/phpstan`\n    * [Doctrine extension](https://github.com/phpstan/phpstan-doctrine): `phpstan/phpstan-doctrine`\n    * [PHPUnit extension](https://github.com/phpstan/phpstan-phpunit): `phpstan/phpstan-phpunit`\n    * [Symfony Framework extension](https://github.com/phpstan/phpstan-symfony): `phpstan/phpstan-symfony`\n    * [TheCodingMachine's additional rules](https://github.com/thecodingmachine/phpstan-strict-rules): `thecodingmachine/phpstan-strict-rules`\n* [PHPUnit Bridge](https://github.com/symfony/phpunit-bridge): `symfony/phpunit-bridge`\n    * With Clover Coverage and percentage code coverage check\n* [Enlightn Security Checker](https://github.com/enlightn/security-checker): `enlightn/security-checker`\n\n## Requirements\nPHP needs to be a minimum version of PHP 7.3.  \nSymfony Framework needs to be a minimum version of Symfony Framework 4.0 or 5.0.\n\n## Installation\nTo install `symfony-grumphp`, [install Composer](https://getcomposer.org/download/), execute the following command:\n```\ncomposer require --dev sci3ma/symfony-grumphp\n```\nand create (or update) configuration files:\n```\n./vendor/bin/symfony-grumphp install\n```\n\n## Configuration\nYou can, and perhaps you should, check and customize all configured tasks in `grumphp.yml` file in project root folder.\n\nGrumPHP should be enabled by default but you can also enable GrumPHP yourself:\n```\n./vendor/bin/grumphp git:init\n```\nor disable GrumPHP:\n```\n./vendor/bin/grumphp git:deinit\n```\nYou can find more GrumPHP configuration [here](https://github.com/phpro/grumphp/blob/master/doc/commands.md#installation).\n\n##### Test code with the database\nIf you need to test code that interact with the database you need to instal [`dama/doctrine-test-bundle`](https://github.com/dmaicher/doctrine-test-bundle):\n```\ncomposer require --dev dama/doctrine-test-bundle\n```\nand uncomment extension `\u003cextension class=\"DAMA\\DoctrineTestBundle\\PHPUnit\\PHPUnitExtension\" /\u003e` in `phpunit.xml.dist`.  \nRead more about [how to Test Code that Interacts with the Database](https://symfony.com/doc/current/testing/database.html)\n\n## Uninstall\nIf you want to uninstall this library remove configuration files first:\n```\n./vendor/bin/symfony-grumphp uninstall\n```\nthen remove package:\n```\ncomposer remove sci3ma/symfony-grumphp\n```\n\n## Force run\nYou can run tests/checks our code without commit manually:\n```\n./vendor/bin/grumphp run\n```\n \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsci3ma%2Fsymfony-grumphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsci3ma%2Fsymfony-grumphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsci3ma%2Fsymfony-grumphp/lists"}