Download the PHP package codelegance/grumphp without Composer
On this page you can find all versions of the php package codelegance/grumphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codelegance/grumphp
More information about codelegance/grumphp
Files in codelegance/grumphp
Package grumphp
Short Description A composer plugin that enables source code quality checks.
License MIT
Informations about the package grumphp
GrumPHP

Sick and tired of defending code quality over and over again? GrumPHP will do it for you! This composer plugin will register some git hooks in your package repository. When somebody commits changes, GrumPHP will run some tests on the committed code. If the tests fail, you won't be able to commit your changes. This handy tool will not only improve your codebase, it will also teach your co-workers to write better code following the best practices you've determined as a team.
GrumPHP has a set of common tasks built-in. You will be able to use GrumPHP with a minimum of configuration.
We don't want to bore you with all the details, so quick: install it yourself and unleash the power of GrumPHP!
Demo

Installation
If you are trying to install GrumPHP on Windows: please read the windows pre-install section.
This package is a composer plugin and should be installed to your project's dev dependency using composer:
When the package is installed, GrumPHP will attach itself to the git hooks of your project. You will see following message in the composer logs:
Watch out! GrumPHP is sniffing your commits!
To make GrumPHP even more awesome, it will suggest installing some extra packages:
- atoum/atoum : ~2.7
- behat/behat : ~3.0
- codegyre/robo : ~0.7
- doctrine/orm: ~2.5
- friendsofphp/php-cs-fixer : ~1|~2
- malukenho/kawaii-gherkin : ~0.1
- phing/phing : ~2.0
- sstalle/php7cc : ~1.1
- phpspec/phpspec : ~2.1
- phpunit/phpunit : ~4.5
- roave/security-advisories : dev-master@dev
- sebastian/phpcpd : ~2.0
- squizlabs/php_codesniffer : ~2.3
- codeception/codeception : ~2.1
- sensiolabs/security-checker : ~3.0
- phpmd/phpmd : ~2.4
- nikic/php-parser: ~2.1
- kahlan/kahlan: ~3
GrumPHP will never push you into using a specific task. You can choose the tasks that fit your needs, and activate or deactivate any task in no time!
Having trouble installing GrumPHP? Find out how to:
- Install globally
- Install with an exotic project structure
- Install on Windows
Configuration
Some things in GrumPHP can be configured in a grumphp.yml
or grumphp.yml.dist
file in the root of your project (the directory where you run the grumphp command).
You can specify a custom config filename and location in composer.json
or in the --config
option of the console commands.
You can find a detailed overview of the configurable options in these sections:
- Parameters
- Tasks
- Events
- TestSuites
- Extensions
Commands
Since GrumPHP is just a CLI tool, these commands can be triggered:
- configure
- git:init
- git:deinit
- git:pre-commit
- git:commit-msg
- run
Compatibility
GrumPHP works with PHP 5.4 or above, and is also tested to work with HHVM.
This package has been tested with following git clients:
- CLI Unix
- CLI Mac
- CLI Windows
- PhpStorm Git
- Atlassian SourceTree
- Syntevo SmartGit
Roadmap
Lots of tasks are already available to make sure your team writes great code. There are still 1 major parts that are missing before we can release a v1.0.0:
We are always looking to support new tasks. Feel free to log an issue or create a pull request for a task we forgot.
Are you missing a feature or did you find a bug? Log it in the issue tracker! Want to help out? Feel free to contact us!
Build your own conventions checker
You can see an example of how to build your own conventions checker.
Solving issues
- GrumPHP does not work with submodules
About
Submitting bugs and feature requests
Bugs and feature request are tracked on GitHub. Please take a look at our rules before contributing your code.
License
GrumPHP is licensed under the MIT License - see the LICENSE file for details.
All versions of grumphp with dependencies
composer-plugin-api Version ~1.0
composer/composer Version ^1.0
doctrine/collections Version ~1.2
gitonomy/gitlib Version ~1.0
monolog/monolog Version ~1.17
ocramius/proxy-manager Version ~0.4|~1.0|~2.0
seld/jsonlint Version ~1.1
symfony/config Version ~2.7|~3.0
symfony/console Version ~2.7|~3.0
symfony/dependency-injection Version ~2.7|~3.0
symfony/event-dispatcher Version ~2.7|~3.0
symfony/filesystem Version ~2.7|~3.0
symfony/finder Version ~2.7|~3.0
symfony/options-resolver Version ~2.7|~3.0
symfony/process Version ~2.7|~3.0
symfony/proxy-manager-bridge Version ~2.7|~3.0
symfony/yaml Version ~2.7|~3.0