Member-only story
Writing Better PHP And Save Time — Part 1
This article for some of you can be obvious, for others can be inspiring, but i wanted to write it because i see a lot of bad php code, even if it is 2021.
Sorry for my bad english, but i’m not a native english speaker. I do my best. I hope you understand me. Thanks.
Php is the web. The web was born thanks to PHP. From Wordpress To Facebook, PHP runs most of the web… And if it was an embarassing language, now it is a mature and modern OOP language that has nothing to envy to Java, .NET, C# and others…
The problem with PHP is that due to its oldness and its simplicity has brought a lot of unexperienced developers and has led to bad programming practices.
That is why PSR has been created. This is why PHP7 and PHP8 are on another level compared to PHP5 and it is why PHP5 is obsolete.
Despite that, even today, in 2021, people still use these “bad practice” so i want to write a small tutorial on how to program in modern PHP and save time… It is not a complete tutorial, but it want just to inspire you to dig depeer, write better code and more important, save time.
Composer Is Your New Friend
I don’t know why, but there are people out there not using composer yet.
Composer is you friend ! My Friend.
It makes things so much simpler. Like what?
- Tracking dependencies of your project