Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaeldyrynda/phpstorm-laravel-code-style
PhpStorm code style to meet Laravel's contribution guidelines
https://github.com/michaeldyrynda/phpstorm-laravel-code-style
Last synced: 2 months ago
JSON representation
PhpStorm code style to meet Laravel's contribution guidelines
- Host: GitHub
- URL: https://github.com/michaeldyrynda/phpstorm-laravel-code-style
- Owner: michaeldyrynda
- Created: 2015-01-20T21:46:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T22:35:25.000Z (over 7 years ago)
- Last Synced: 2024-08-01T19:49:01.771Z (5 months ago)
- Size: 61.5 KB
- Stars: 293
- Watchers: 21
- Forks: 82
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-awesome-list - phpstorm-laravel-code-style
README
# PhpStorm Laravel Code Style
This is a code style based on PSR-2, as per Laravel's [Contribution Guide](http://laravel.com/docs/5.4/contributions#coding-style)
## Installation
**Configuration folder** : Drop the `Laravel.xml` file in the `/config/codestyles/` subfolder within your [configuration directory](https://www.jetbrains.com/phpstorm/help/project-and-ide-settings.html).
**IDE Settings** : Open your Settings (`Ctrl + Alt + S`) and go to `Editor > Code Style` section. Click on the `Scheme` wrench on the right and select `Import Scheme > Intellij IDEA code style XML`.
## Notes
This code style has been updated in line with Laravel 5.4, and matches Laravel's code styles as best as possible with PhpStorm's available configuration.
Be mindful of the PHPDoc layout, which dictates `@param` is followed by *two* spaces, the argument type, *two more* spaces, and finally the variable name, which I've not been able to replicate in PhpStorm.