You can create your own ORM for MySQL by passing the name of the class to the mysqli fetch_object() method. This will result in getting an object of that class back, rather than an array or a stdClass object. This can be useful if you put in the effort of creating a class for each of your tables, and then provide methods that you can invoke on those returned objects to give them behavior.
On this page of the site you can watch the video online PHP - Creating Your Own ORM for a MySQL Database with a duration of hours minute second in good quality, which was uploaded by the user Programster 18 March 2018, share the link with friends and acquaintances, this video has already been watched 9,072 times on youtube and it was liked by 42 viewers. Enjoy your viewing!