According to The State of Developer Ecosystem 2021 released by JetBrains, PhpStorm is the most popular IDE used by PHP developers, while VS Code stands second.
If you’re a PHP developer and work as a team, you may already have met source code in your project that you must rework to make it more understandable. You did so because you were convinced some best practices were not applied. The author of the source code probably did not know them or did not realize a bad practice was introduced. These practices can be related to PHP itself, Lavarel/Symfony usage, Performance, Security, or any topic of interest.
In any case, that was an excellent opportunity for you to make the code cleaner. However, it would be even more efficient if the author took knowledge of your action. Let’s go further: what if your whole team could benefit from your changes? And even other teams in your organization?
Let’s see how to achieve that.
Once everything is ready, just keep on coding until you realize a specific code snippet does not follow a best practice. Let’s take a simple example with this Laravel best practice, but assume you’ll define a practice specific to your context.
It’ll take you no more than 30 seconds to catch this snippet of code and send it to Promyze.
If you’re going to edit the code to ensure the best practice is applied, you can also do it with the plugin Promyze. Here is an example of correction:
Thanks to Promyze, anyone in your team can perform the same operations as you did. All these contributions are sent to Promyze, a Web application that records all your best practices. But this is also a place where you can run team meetings, called Craft Workshops, that are dedicated to reviewing each developers’ contributions and validating them or not.
For instance, I (Bob) will explain to my team why I think this is a bad practice:
I can show the code in detail to see before/after my correction:
Now, every time your or your teammates will use magic strings instead of translations systems, they’ll receive a notification telling us their code is not following a best practice:
Promyze, the collaborative platform dedicated to improve developers’ skills through best practices sharing and definition