OOP was possible in php.4 already. It got a bit better, but its not the main use of the language for sure, so its not very crucial or practical.
Like everything some things work, some don’t.
An oop approach to a CMS means you create a page object with variables and derive other objects form it.
In practice, on websites nothing is that static and the data that changes comes in from a database.
Ergo, there’s almost no need to “think” of a page as an object.
Doesn’t mean that people haven’t coded an object without realizing it in the end.
That said, mysql access is done via an object that you access functions for via → (instead of .).
Somewhat similar with JS, except not really.
Any time you mess with the DOM you are acting and interacting with strongly typed objects - almost like you do in c++.
All Dom objects tend to have their own definitions and functions to call.
The only real difference is that you don’t need to ever create a header file and instantiate variables. It’s all essentially done for you.
This doesn’t stop you from creating a custom object with custom properties. In fact, things run a lot smoother.
To the point you can re make a browser based arkanoid clone with billions of spawning cubes (divs) and have it run way faster than unreal ever would the way they have left it crippled for the past soon to be 2 years, and counting.
Last thing, don’t p*ss on php. It’s mostly C++.
To the point you can actually encode all php pages and develop a server-side c++ executable that converts it securely (so clients are unable to steal source code without major workarounds).
Arguably, it’s not as powerful as other things. But you know what? LAMP is far better than anything else. And it scales way better too.
The only reason C# and m$ azure still exist is that they are a fracking vanity plate since you have to actually hire an engineer to code a website with it.
Also, while on this topic, the memory footprint difference between mysql ans ms sql is ridiculous.
Tell me where in 2021 have you ever even herd of a piece of software that must keep a whole database in RAM to be able to access it.
Nowhere that’s where. Unless you have to set up a mssql server.