r/PHP • u/lordmyd • Sep 25 '21
Developing with procedural PHP.
Not all of us are fans of OOP boilerplate and ceremony. PHP is a perfectly fine procedural language and a well-organised procedural codebase can be easier to manage in many ways. So, is anyone developing with procedural PHP beyond single-file scripts?
0
Upvotes
5
u/zmitic Sep 25 '21
To be honest, I doubt you understood the point of OOP. You could put procedural functions in classes and call it OOP but that is not the point of all.
This is not a matter of being a fan of something, it is a matter of maintenance and readability. Use some existing library as reference, not those famous and useless
class Dog extends Animalexamples.