承接 fastfony/quality-pack 相关项目开发

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

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

fastfony/quality-pack

最新稳定版本:v1.0.0

Composer 安装命令:

composer require fastfony/quality-pack

包简介

A Symfony pack for initializing quality tools in your project

README 文档

README

A Symfony pack for initializing quality tools in your project.

Installation

composer require fastfony/quality-pack --dev

What's included?

This pack includes the following tools and configurations:

  • PHPStan - PHP Static Analysis Tool
  • PHP CS Fixer - PHP Coding Standards Fixer
  • Twig CS Fixer - Twig Coding Standards Fixer

Configuration Files

When using Symfony Flex, the recipe provides the following configuration files:

  • .twig-cs-fixer.dist.php - Twig CS Fixer configuration (automatically added by recipe)
  • .github/workflows/quality.yml - GitHub Actions workflow (automatically added by recipe)
  • Makefile - Quality command shortcut (automatically added by recipe)

Configuration files for PHPStan and PHP CS Fixer are provided by their respective Symfony Flex recipes.

If you're not using Symfony Flex, you can manually add these files to your project.

GitHub Actions Workflow

A GitHub Actions workflow example is provided in .github/workflows/quality.yml that runs:

  • Security checks (using Composer Security Audit)
  • PHPStan analysis

The workflow runs on all pushes and pull requests to all branches.

Usage

PHPStan

Run static analysis:

vendor/bin/phpstan analyse

PHP CS Fixer

Check code style:

vendor/bin/php-cs-fixer fix --dry-run --diff

Fix code style:

vendor/bin/php-cs-fixer fix

Twig CS Fixer

Check Twig templates:

vendor/bin/twig-cs-fixer lint templates/

Fix Twig templates:

vendor/bin/twig-cs-fixer lint --fix templates/

Customization

You can customize the configuration files according to your project's needs. Each configuration file is well-documented and follows best practices.

License

MIT

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-11