https://mcampbell508.github.io/phpcsfixer-rules/
The aim of this project is to provide a UI to help explain PHP-CS-Fixer rules, with clear examples. Personally, I think the official docs on the README are okay, but I felt there could be a better way to view what each rule does and demonstrate what happens after applying each rule.
Another reason for this project, is for me to learn more ReactJS.
Currently, with this application users can:
- Select each rule and view a clear description and if it is marked risky.
- When viewing a rule, a nice diff view for before and after demonstrations for each rule, once it is applied.
- Make App fully responsive
- Handle multiple configuration rules
- Display the rule config for easy copy paste.
- Refactor with Redux, for own personal learning - if there is time
This project focuses on the rules specified in version 2.9.*
of PHP-CS-Fixer.
- PHP-CS-Fixer
- https://mlocati.github.io/php-cs-fixer-configurator/ - I stumbled onto this interesting project when I had the idea to start my own project here. I have used this JSON file from the php-cs-fixer-configurator project as part of my backend source which is sent to the React JS frontend. Check the project out, its pretty cool.
This project was bootstrapped with Create React App.
MIT License