Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2
PHP Coding Style rules we use in Codely
License
NotificationsYou must be signed in to change notification settings
CodelyTV/php-coding_style-codely
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Opinionated linting configuration considering modern PHP best practices and providing consistency. 👌
Take a look, play and have fun with this.Stars are welcome 😊
- Install the dependency
composer require --dev codelytv/coding-style
- Add it to your
ecs.php
file:useCodelyTv\CodingStyle;useSymplify\EasyCodingStandard\Config\ECSConfig;returnfunction (ECSConfig$ecsConfig):void {$ecsConfig->paths([__DIR__ .'/src',]);$ecsConfig->sets([CodingStyle::DEFAULT]);// Or this if you prefer to have the code aligned// $ecsConfig->sets([CodingStyle::ALIGNED]);};
- Execute it:
./vendor/bin/ecs check
- Lints PHP using PSR-12
- Extends some config (you can see all the ruleshere)
- Use tabs to indent (reason). If you want to use spaces, you can add thefollowing line at the end of your
ecs.php
:useSymplify\EasyCodingStandard\ValueObject\Option;$ecsConfig->indentation(Option::INDENTATION_SPACES);
Simply create a newGitHub Release followingsemantic versioning.
Publishing this package we are committing ourselves to the following code quality standards:
- 🤝 RespectSemantic Versioning: No breaking changes in patch or minor versions
- 🤏 No surprises in transitive dependencies: Use thebare minimum dependencies needed to meet the purpose
- 🎯One specific purpose to meet without having to carry a bunch of unnecessary other utilities
- 📖Well documented Readme showing how to install and use
- ⚖️License favoring Open Source and collaboration
About
PHP Coding Style rules we use in Codely
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.