Web Development

This is one major reason I created Devsrealm, to share what I have learned with others in the web development scene. I’ll be covering PHP, JS, JS frameworks, CSS, and more.

  • 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
  • HTML (plain-text) Email Template For Mautic

    HTML (plain-text) Email Template For Mautic

    Mautic doesn’t support sending plain-text email yet, but you can still mimic plain-text kinda email, here is an example: I’ll show you two ways to use this…. Method 1: Code Mode Go-to mautic code mode, and use the following code: <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xmlnsv="urn:schemas-microsoft-com:vml" xmlnso="urn:schemas-microsoft-com:office:office"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="viewport" content="width=device-width" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" ...

    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
  • Abstract Classes, Interfaces and Traits In PHP

    Abstract Classes, Interfaces and Traits In PHP

    So far, we’ve covered OOP basics in PHP, and Static Methods, & Properties, in this guide, we would cover abstract classes in PHP. What is an abstract class? Just like I explained in the OOP basics, I said a class describes the concept of creating an Object, there are not necessarily the objects themselves, but as a code ...

    Read Full Post

Sub Categories