php

How to generate entity from database tables in PHP automatically

If you have followed my previous tutorial, then you already know about, how to create object relational mapping  (ORM) in object oriented programming system.  Before proceed, you can go through this at least once. Here is the link ORM PHP using OOP In this tutorial, we will be developing application which generates entities automatically either of […] Read more»

php

how to develop ORM(object relational mapping) in PHP using OOP

Today, i am going to teach you, how to develop object relational mapping database application in PHP using object oriented programming methodology. I love to code in object oriented method to reduce redundancy, encapsulation and many more. Let’s begin….   1. First create the database called ‘ORM‘ using phpmyadmin and create the ‘person‘ table   […] Read more»

php

Object Oriented Programming in PHP – best practices

 Naming Convention all small letter for filename class.emailer.php for class file interface.emailer.php for interface abstract.emailer.php for abstract classes class name to be in camel case e.g. class BigData variable names all in small case e.g. $dbname method name to be camel case with first letter to be small e.g. getRecord() Interfaces defines the methods to be […] Read more»

wordpress

WordPress Hooks: ACTION and FILTERS

Hooks are simply a standardized way of “hooking” into WordPress. Using hooks, we can execute functions at specific times in the WordPress process, allowing us to alter how WordPress functions and the expected output. Hooks are the primary way plugins interact with our content in WordPress. Two types of hooks can be used: Actions and […] Read more»

wordpress

How to create wordpress plugin

Here, we are going to create a polular post plugin in wordpress. Steps: 1. first step is to create a popular-posts.php file inside wp-content/plugins directory and paste the following header. [crayon-5a36e49d89446856371335/] 2. You can now activate from wordpress admin dashboard. 3. Read more»