openregion/pint-config 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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 laravel preset;
  • 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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固