承接 hgtan/symfony-pre-commit 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hgtan/symfony-pre-commit

Composer 安装命令:

composer require hgtan/symfony-pre-commit

包简介

A Symfony pre-commit hook

README 文档

README

========================== Checks in our pre-commit hook

  • Syntax check with php lint (“php -l”): We check every committed file has a valid PHP syntax.
  • Sync check of composer.json and composer.lock files: We check these two files are committed together in order to avoid committing the json but not the lock and generate some issue to another developers.
  • PHP CS Fixer check: With the –dry-run parameter it does not fix, just say what the problems are. With the –fixers parameter you can control what fixers you want to execute.
  • PHP Code Sniffer check: Same as before, but another rule that checks another rules.
  • PHPMD: We have enabled the controversial rules.
  • Unit Testing check: We run around 3.000 tests right now.

INSTALLATION:

Latest Stable Version Total Downloads Latest Unstable Version License

SensioLabsInsight

This library is available on Packagist. The recommended way to install this library is through Composer:

add hgtan/symfony-pre-commit as a composer dependency.

composer.json

"require-dev": { ... "hgtan/symfony-pre-commit": "dev-master" } php composer.phar update hgtan/symfony-pre-commit

USAGE:

When a developer clones the project, it just needs to:

-- linux cd [project] rm -rf .git/hooks ln -s ../vendor/hgtan/symfony-pre-commit/hooks .git/hooks -- windows cd [project] rd .git\hooks mklink /D /J .git\hooks vendor\hgtan\symfony-pre-commit\hooks 

Remembering to set up the hooks

"scripts": { "pre-update-cmd": "Hgtan\\Composer\\Script\\Hooks::checkHooks", "pre-install-cmd": "Hgtan\\Composer\\Script\\Hooks::checkHooks" } 

Have a look at Write your git hooks in PHP and keep them under git control for more usage information.

hgtan/symfony-pre-commit 适用场景与选型建议

hgtan/symfony-pre-commit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 32.18k 次下载、GitHub Stars 达 15, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 hgtan/symfony-pre-commit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 hgtan/symfony-pre-commit 我们能提供哪些服务?
定制开发 / 二次开发

基于 hgtan/symfony-pre-commit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 32.18k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 25
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04