[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8412":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},8412,"grumphp","phpro\u002Fgrumphp","phpro","A PHP code-quality tool","",null,"PHP",4295,448,69,4,0,1,8,29.96,"MIT License",false,"v2.x",true,[25,26,27,28,29],"code-quality","composer-plugin","git-hooks","hacktoberfest","php","2026-06-12 02:01:53","[![Github Actions](https:\u002F\u002Fgithub.com\u002Fphpro\u002Fgrumphp\u002Fworkflows\u002FGrumPHP\u002Fbadge.svg?branch=master)](https:\u002F\u002Fgithub.com\u002Fphpro\u002Fgrumphp\u002Factions\u002Fworkflows\u002Fgrumphp.yml)\n[![AppVeyor](https:\u002F\u002Fci.appveyor.com\u002Fapi\u002Fprojects\u002Fstatus\u002Fttlbau2sjg36ep01\u002Fbranch\u002Fmaster?svg=true)](https:\u002F\u002Fci.appveyor.com\u002Fproject\u002Fveewee\u002Fgrumphp\u002Fbranch\u002Fmaster)\n[![Installs](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdt\u002Fphpro\u002Fgrumphp.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fphpro\u002Fgrumphp\u002Fstats)\n[![Packagist](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Fphpro\u002Fgrumphp.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fphpro\u002Fgrumphp)\n\n[![Twitter](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTwitter-%40grumphp-blue.svg)](https:\u002F\u002Ftwitter.com\u002Fintent\u002Fuser?screen_name=grumphp)\n[![Join the chat at https:\u002F\u002Fgitter.im\u002Fphpro\u002Fgrumphp](https:\u002F\u002Fbadges.gitter.im\u002Fphpro\u002Fgrumphp.svg)](https:\u002F\u002Fgitter.im\u002Fphpro\u002Fgrumphp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n# GrumPHP\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fphpro\u002Fgrumphp\u002Fmaster\u002Fresources\u002Flogo\u002Fgrumphp-grumpy.png\" align=\"right\" width=\"250\"\u002F>\n\nSick and tired of defending code quality over and over again? GrumPHP will do it for you!\nThis composer plugin will register some git hooks in your package repository.\nWhen somebody commits changes, GrumPHP will run some tests on the committed code.\nIf the tests fail, you won't be able to commit your changes.\nThis 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.\n\nGrumPHP has a set of common tasks built-in. You will be able to use GrumPHP with a minimum of configuration.\n\nWe don't want to bore you with all the details, so quick: install it yourself and unleash the power of GrumPHP!\n\n## Demo\n\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fphpro\u002Fgrumphp\u002Fwiki\u002Fimages\u002Fdemo.gif\" alt=\"demo\" width=\"100%\" \u002F>\n\n## Installation\n\nIn order for this package to work, you have to make sure following tools are discoverable on the command-line:\n\n- php\n- composer\n- git\n\nThis package is a composer plugin and should be installed to your project's dev dependency using composer:\n\nInstall GrumPHP as a phar without dependencies:\n```sh\ncomposer require --dev phpro\u002Fgrumphp-shim\n```\n\nInstall GrumPHP with dependencies:\n```\ncomposer require --dev phpro\u002Fgrumphp\n```\n\nInstall GrumPHP without dependencies and automated git hooks through phive\n```\nphive install grumphp\n```\n\nWhen the package is installed, GrumPHP will attach itself to the git hooks of your project.\nYou will see following message in the composer logs:\n\n*Watch out! GrumPHP is sniffing your commits!*\n\nGrumPHP will never push you into using a specific task. You can choose the tasks that fit your needs, and activate or\ndeactivate any task in no time! See the `suggest` section in [composer.json](https:\u002F\u002Fgithub.com\u002Fphpro\u002Fgrumphp\u002Fblob\u002Fmaster\u002Fcomposer.json#L50).\n\nNote: GrumPHP will overwrite existing hooks unless you run `composer install` with `--no-plugins` or `--no-scripts`.\nWe do create a backup of your git hook, but it's best to make sure you also have a backup of your custom hooks before you try to install GrumPHP.\n\nHaving trouble installing GrumPHP? Find out how to:\n\n- [Install globally](doc\u002Finstallation\u002Fglobal.md)\n- [Install with an exotic project structure](doc\u002Finstallation\u002Fexotic.md)\n\n## Configuration\n\nSome things in GrumPHP can be configured in a `grumphp.yml` or `grumphp.yml.dist` or `grumphp.dist.yml` file in the root of your project (the directory where you run the grumphp command).\nYou can specify a custom config filename and location in `composer.json` or in the `--config` option of the console commands.\n\n```yaml\n# grumphp.yml\ngrumphp:\n    hooks_dir: ~\n    hooks_preset: local\n    git_hook_variables:\n        VAGRANT_HOST_DIR: .\n        VAGRANT_PROJECT_DIR: \u002Fvar\u002Fwww\n        EXEC_GRUMPHP_COMMAND: exec\n        ENV: {}\n    stop_on_failure: false\n    ignore_unstaged_changes: false\n    hide_circumvention_tip: false\n    process_timeout: 60\n    ascii:\n        failed: grumphp-grumpy.txt\n        succeeded: grumphp-happy.txt\n    parallel:\n        enabled: true\n        max_workers: 32\n    fixer:\n        enabled: true\n        fix_by_default: false\n    environment:\n        files: []\n        variables: {}\n        paths: []\n    tasks: {}\n    testsuites: []\n    extensions: []\n```\n\nDetails of the configuration are broken down into the following sections.\n\n- [Parameters](doc\u002Fparameters.md) &ndash; Configuration settings for GrumPHP itself.\n- [Tasks](doc\u002Ftasks.md) &ndash; External tasks performing code validation and their respective configurations.\n- [TestSuites](doc\u002Ftestsuites.md)\n- [Extensions](doc\u002Fextensions.md)\n- [Extending the TaskRunner](doc\u002Frunner.md)\n- [Conventions checker](doc\u002Fconventions.md)\n\n## Commands\n\nSince GrumPHP is just a CLI tool, these commands can be triggered:\n\n- [configure](doc\u002Fcommands.md#installation)\n- [git:init](doc\u002Fcommands.md#installation)\n- [git:deinit](doc\u002Fcommands.md#installation)\n- [git:pre-commit](doc\u002Fcommands.md#git-hooks)\n- [git:commit-msg](doc\u002Fcommands.md#git-hooks)\n- [run](doc\u002Fcommands.md#run)\n\n## Compatibility\n\nGrumPHP works with PHP 5.6 or above.\n\nThis package has been tested with following git clients:\n\n- CLI Unix\n- CLI Mac\n- CLI Windows\n- PhpStorm Git\n- Atlassian SourceTree\n- Syntevo SmartGit\n\n## Roadmap\n\nLots of tasks are already available to make sure your team writes great code.\nWe are always looking to support new tasks.\nFeel free to log an issue or create a pull request for a task we forgot.\n\nAre you missing a feature or did you find a bug?\nLog it in the [issue tracker](https:\u002F\u002Fgithub.com\u002Fphpro\u002Fgrumphp\u002Fissues)!\nWant to help out? Feel free to contact us!\n\n## FAQ\n- [FAQ](doc\u002Ffaq.md)\n\n## About\n\n### Submitting bugs and feature requests\n\nBugs and feature request are tracked on [GitHub](https:\u002F\u002Fgithub.com\u002Fphpro\u002Fgrumphp\u002Fissues).\nPlease take a look at our rules before [contributing your code](CONTRIBUTING.md).\n\n### License\n\nGrumPHP is licensed under the [MIT License](LICENSE).\n","GrumPHP 是一个 PHP 代码质量工具，通过集成到 Git 钩子中，在代码提交时自动运行一系列测试。其核心功能包括支持多种内置任务（如代码风格检查、单元测试等），并允许用户根据项目需求自定义任务组合。采用 Composer 插件形式安装，易于集成到现有 PHP 项目中。适用于需要提高团队代码质量和一致性，以及希望在早期阶段发现和修复问题的开发场景。",2,"2026-06-11 03:17:49","top_language"]