The Elgentos Laravel Coding Standards packages adds coding standards for your Laravel proect. It is based on the generic MediaCT coding standards, but with framework specific changes made for Laravel.
To install this package, run the following Composer command in your project.
composer require --dev elgentos/coding-standard-laravel
To let PHPCS in your project know that these coding standards should be used,
make sure you add the following lines to your project's phpcs.xml
file:
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/elgentos/coding-standard-egentos/src/ElgentosLaravel"/>
</ruleset>
import foobar
foobar.pluralize('word') # returns 'words'
foobar.pluralize('goose') # returns 'geese'
foobar.singularize('phenomena') # returns 'phenomenon'
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.