hungthai1401/grumphp-pint-task
Composer 安装命令:
composer require hungthai1401/grumphp-pint-task
包简介
Laravel Pint task runner from GrumPHP
关键字:
README 文档
README
This package extends GrumPHP with a task that runs Laravel Pint for your Laravel projects.
Installation
The easiest way to install this package is through composer:
composer require --dev hungthai1401/grumphp-pint-task
Config
Add the extension loader to your grumphp.yml or grumphp.yml.dist.
The task lives under the laravel_pint namespace and has following
configurable parameters:
grumphp: tasks: laravel_pint: config: 'pint.json' files_on_pre_commit: false paths: ['src'] extensions: - HT\GrumPhpPintTask\ExtensionLoader
By default, this won't update your code, you need to do it manually.
config
Default: 'pint.json'
If you want to use a different config file than the default pint.json, you can specify your custom config file location with this option.
files_on_pre_commit
Default: false
This option makes it possible to use the changed files as paths during pre-commits. It will use the paths option to make sure only committed files that match the path are validated.
paths
Default: []
Can only be used when files_on_pre_commit=false
If you want to run on particular directories only, specify it with this option.
Sample Laravel Pint configuration
Create pint.json in your project root and configure as follows. This example file I am using for my Laravel project. Also you no need to set all these settings, please add or remove as per your requirements.
{
"preset": "laravel",
"rules": {
"concat_space": {
"spacing": "one"
},
"fully_qualified_strict_types": true,
"global_namespace_import": {
"import_constants": true,
"import_functions": true,
"import_classes": true
}
}
}
Please visit Laravel Pint for more configuration examples.
Uninstall
If you want to uninstall this extension remove configuration files first: pint.json from your application, then remove package:
composer remove hungthai1401/grumphp-pint-task
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
hungthai1401/grumphp-pint-task 适用场景与选型建议
hungthai1401/grumphp-pint-task 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17.81k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 11 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「refactoring」 「php-library」 「laravel-framework」 「grumphp」 「grumphp-task」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hungthai1401/grumphp-pint-task 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hungthai1401/grumphp-pint-task 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hungthai1401/grumphp-pint-task 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Editable JSON AST with visitor traversal and formatting-preserving printing.
An extensible package of custom Rector rules for automated PHP refactoring and coding standard enforcement.
Initialize Script
A modern PHP library for converting color codes between RGB, HEX, and HSL color spaces.
It's a barebone security class written on PHP
It's a barebone security class written on PHP
统计信息
- 总下载量: 17.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 20
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-03