rabiloo / coding-standard
Rabiloo's PHP coding standard
Installs: 6 500
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
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-11-08 12:09:50 UTC
README
Rabiloo's PHP coding standard
Installation
You can install the package via composer:
composer require rabiloo/coding-standard --dev
Add it to your project phpcs.xml
or phpcs.xml.dist
ruleset:
<?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
If you use it with Laravel project, you can install by commands
composer require rabiloo/coding-standard --dev php artisan vendor:publish --tag rabiloo-coding-standard
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.