rabiloo / coding-standard
Rabiloo 的 PHP 代码规范
v0.1.1
2023-01-30 10:49 UTC
Requires
- php: ^8.0
Requires (Dev)
- illuminate/support: ^9.48
- laravel/pint: ^1.0
- orchestra/testbench: ^7.19
- phpunit/phpunit: ^9.5
- psalm/plugin-laravel: ^2.5
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^5.6
This package is auto-updated.
Last update: 2024-09-08 11:51:28 UTC
README
Rabiloo 的 PHP 代码规范
安装
您可以通过 composer 安装此包
composer require rabiloo/coding-standard --dev
将其添加到项目的 phpcs.xml
或 phpcs.xml.dist
规则集
<?xml version="1.0"?>
<ruleset>
<arg value="p"/>
<arg value= "s"/>
<arg name="colors"/>
<file>app</file>
<file>bootstrap</file>
<file>config</file>
<file>database</file>
<file>lang</file>
<file>routes</file>
<file>tests</file>
<file>public</file>
<exclude-pattern>*/*.js</exclude-pattern>
<exclude-pattern>*/*.css</exclude-pattern>
<exclude-pattern>*/*.xml</exclude-pattern>
<exclude-pattern>*/*.blade.php</exclude-pattern>
<exclude-pattern>bootstrap/cache</exclude-pattern>
<rule ref="./vendor/rabiloo/coding-standard/ruleset.xml"/>
</ruleset>
Laravel
如果您在 Laravel 项目中使用它,可以通过以下命令安装
composer require rabiloo/coding-standard --dev php artisan vendor:publish --tag rabiloo-coding-standard
变更日志
请参阅 CHANGELOG 了解最近更改的详细信息。
贡献
请参阅 CONTRIBUTING 了解详细信息。
安全漏洞
请查看 我们的安全策略 了解如何报告安全漏洞。
致谢
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 了解更多信息。