smartbooster/standard-bundle
Composer 安装命令:
composer require --dev smartbooster/standard-bundle
包简介
Bundle grouping all dev vendor that we use for testing and coding with the SMART BOOSTER standards
README 文档
README
Bundle grouping all dev vendor that we use for testing and coding with the SMARTBOOSTER standards.
What's inside !
- All the development vendors that we use daily to check our code quality:
- static analysis with PHPStan,
- security taint analysis with Psalm,
- checkstyle and coding standards with PHP-CS-Fixer
- native linters (php, twig, yaml, sf container)
- tests bundle configuration for PHPUnit
- Makefiles with QA and testing commands to easily run them.
Installation
# This bundle is not added to the symfony/recipes-contrib repo, you need to manually add the recipe endpoint on your composer.json composer config --json extra.symfony.endpoint '["https://api.github.com/repos/smartbooster/standard-bundle/contents/recipes.json", "flex://defaults"]' # Then require the bundle into your dev requirements: composer require --dev smartbooster/standard-bundle
When being prompted "Do you want to execute this recipe?" from the other bundle (Phpstan, Dama, ...) answer No and press enter.
The standard-bundle has its own recipe which will cover the bundles mentioned above (check the dotted manifest to see which files).
Don't forget to do a recipe reset to have the latest changes from the recipe copied files (see next section).
Updating the standard-bundle
If you require an upper version or update the bundle version on your project, run the following command to execute the recipe with the latest changes
composer update smartbooster/standard-bundle composer recipes:install smartbooster/standard-bundle --reset --force
Also check the CHANGELOG.md in case some vendor depedancie has been removed (the recipe reset force command doesn't handle removing past added recipe files).
Working on the bundle
Architecture Decision Records (ADR)
Every structuring decision made on the standard-bundle (adding, replacing or removing a tool/rule) must be tracked in an ADR, stored in the adr/ folder.
Name the file {date}-{topic}.md (e.g. 20260709-php-codesniffer-removal.md) and structure its content with the following sections:
- Context: the current situation and why it needs to change.
- Goal: what we are trying to achieve.
- Selected solution: the solution we chose (and, if relevant, the alternatives we discarded).
- Impact: the concrete consequences on the bundle (files added/changed/removed).
This practice is MANDATORY to help us recall why we did such changes in the past and must be taken seriously.
Updating the recipe dotted manifest
If the dotted manifest has to change (for any configurator), or for a new major version of the bundle,
you must create a new smartbooster.standard-bundle.{major}.{minor}.json with a distinct "ref" value.
Use the following PHP script to generate a new random "ref" value:
echo bin2hex(random_bytes(20));
Then add it to the recipes.json list.
Contributing
Pull requests are welcome.
Thanks to everyone who has contributed already.
This project is supported by SmartBooster
smartbooster/standard-bundle 适用场景与选型建议
smartbooster/standard-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.17k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 12 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「testing」 「bundle」 「static analysis」 「quality」 「standard」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 smartbooster/standard-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 smartbooster/standard-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 smartbooster/standard-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Testing Suite For Lumen like Laravel does.
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
Provide a way to secure accesses to all routes of an symfony application.
DMS Meetup API Bundle, enables Meetup API clients in services
The PHP SDK for Checkmango
统计信息
- 总下载量: 2.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 13
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-06