PHP Tutorials

PHP is a server-side programming language that allows web developers to create dynamic content that interacts with databases.

I created this page to documents all I have learned on PHP, instead of reading the manual every time I need to use a specific function or I wanna learn a certain syntax, I’ll hop in here to find the details, and the bad thing about me is that I can only understand my very own explanation 🙂

Here are guides to follow if you are new to PHP…

Beginner Tutorials On PHP

  1. Getting Started With PHP (Introduction)
  2. Exploring Data Types, Variables and Operators in PHP
  3. Conditional Statements In PHP
  4. Control Structure: Guide To Learning Loops In PHP
  5. Guide To Functions In PHP
  6. Arrays in PHP

Advanced Tutorials On PHP

  1. Object-Oriented Programming Intro in PHP
  2. Static Methods and Properties In PHP
  3. Abstract Classes, Interfaces, and Traits In PHP
  4. PDO: Querying Data From Database – PHP MariaDB/MySQL
  5. Creating a Tiny PHP MVC Framework From Scratch

Interesting Laravel Guides

  • PHP Pluggable and Modular System – Part 2 (Implementation) [Event Dispatcher]

    PHP Pluggable and Modular System – Part 2 (Implementation) [Event Dispatcher]

    In the first series of this guide, we discussed the theoretical aspect of building a pluggable system in PHP, I wrote a bit of code in that guide plus a couple of stuff you should avoid, you can learn more here: PHP Pluggable and Modular System – Part 1 (Abstract View) In this guide, I’ll go over ...

    Read Full Post
  • PHP Pluggable and Modular System – Part 1 (Abstract View) [Observable and Mediator Pattern]

    If there is one thing that is brutally confusing to me ever since I started coding, it would be a way to not only implement a Modular system but a way to make it extensible (adding and removing plugins, yes, visually). For example, ClassicPress/Wordpress or Drupal are extensible by the way of Hooks, Actions, and Filters. Most ...

    Read Full Post
  • Best Way To Implement a Non-Breaking Friendly URL In PHP or Laravel or Any Language

    Best Way To Implement a Non-Breaking Friendly URL In PHP or Laravel or Any Language

    I was working on the link structure of my new Laravel app, and out of the blue I said: “What would happen if a user changes the slug of a post?” First Attempt – 301 Redirection The first solution I thought of is to keep the old URLs and do a 301 redirect to the new URL, while ...

    Read Full Post
  • Creating a Tiny PHP MVC Framework From Scratch

    Creating a Tiny PHP MVC Framework From Scratch

    In this guide, we would go over creating a tiny PHP MVC Framework, this would sharpen your knowledge on how major frameworks (e.g Codeigniter or Laravel) works in general. I believe if you can understand the practical concept in this guide, you’ll be able to relate the logic to the aforementioned framework real quick. Basics of ...

    Read Full Post
  • PDO: Querying Data From Database – PHP MariaDB/MySQL

    PDO: Querying Data From Database - PHP MariaDB/MySQL

    In this guide, you’ll learn how to query data from a MariaDB database using PHP PDO, plus an understanding of how the nuances work. So, here are the details… I have a table cmusicin marn_melodicdatabase, in short, here is how the table looks if I use the SELECT statement directly from mariadb client: MariaDB > SELECT * FROM cmusic; +----------+--------+-------+-----------------+-------------------------+----------+-------------+-------------+ | music_id ...

    Read Full Post