openregion/pint-config
Composer 安装命令:
composer require openregion/pint-config
包简介
Shared Laravel Pint configuration for Open Region projects.
README 文档
README
Reusable Laravel Pint configuration for Open Region PHP projects.
The configuration starts with Pint's laravel preset and applies Open Region's shared PHP style. Laravel rules with different Open Region behavior are overridden, and additional Open Region rules are included as well.
Installation
Install the package as a development dependency:
composer require --dev openregion/pint-config
The package installs a compatible Laravel Pint version automatically.
Usage
Create pint.json in the root of your project and extend the shared configuration:
{
"extend": "vendor/openregion/pint-config/pint.json"
}
Run Pint normally:
vendor/bin/pint
Use test mode in CI or pre-commit checks:
vendor/bin/pint --test
Project-specific rules
Add project-specific rules and finder options to the local pint.json:
{
"extend": "vendor/openregion/pint-config/pint.json",
"rules": {
"single_quote": false
},
"exclude": [
"generated"
]
}
Direct usage
The shared configuration can also be selected without a local pint.json:
vendor/bin/pint --config=vendor/openregion/pint-config/pint.json
Rule baseline
The current rule comparison uses:
- Laravel Pint 1.29.3 and its
laravelpreset; - PHP CS Fixer 3.95.8, bundled with that Pint release.
Semantically equivalent configurations are left to the Laravel preset. The published pint.json contains explicit rule overrides and additions instead of another preset, keeping the inheritance order predictable.
License
This package is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-10