Rethinking PHP Without the Bloat: How a Self-Taught Developer Built a 30 MB Modular Web OS

Rethinking PHP Without the Bloat: How a Self-Taught Developer Built a 30 MB Modular Web OS

●2 ●6
calendar_today ago • schedule3 min read

Hi everyone,

My name is Hadel Rachid, I'm from Brazil. I don’t have a computer science degree and I never attended a programming bootcamp. Everything I know about code, I learned by sitting in front of my computer, reading guides, breaking things, and trying to fix them.

For a long time, I was bothered by how heavy web applications have become. If you just want to set up a modest shop, a blog, or a learning site, you often end up downloading hundreds of megabytes of files and dealing with dozens of tools you barely understand.

I wanted to see if I could build a complete, modular system in pure PHP that would weigh around 30 MB and run smoothly even on a cheap shared hosting server. That became my personal project: Domain-System.

Here is a quick look at how I built it and why I am sharing it today.


Understanding things through real life, not academic jargon

When I first started trying to learn software design and principles like SOLID, I found most tutorials very confusing. They always used strange examples like "Dogs barking" or "Cats meowing" that didn't help me understand real code.

Because I am self-taught, I had to explain things to myself using everyday analogies:

  • Wall sockets and plugs: A socket in the wall is just a rule (an interface). Any device that has the right plug can connect to it. The wall doesn't care what brand your lamp is.
  • An Arduino board: The main board only provides pins. Whether you plug in an LED light or a fan, the board treats the connection the same way.
  • A beehive: The main system (Kernel) is like the queen. The plugins are the worker bees. They talk to each other through simple events, without getting in each other's way.

I liked these simple analogies so much that I even put them together in a documentation guide (Inside Domain-System) and in a small book I published on Amazon Kindle.


How I keep it safe and light

Keeping a system under 30 MB means writing clean code without adding tons of external packages:

  1. Simple database and files: It works with standard SQLite and MySQL without heavy database layers.
  2. Double-checking money: In the checkout, the system makes sure the amount paid on Stripe or PayPal matches the order down to the exact cent before marking it as paid.
  3. No messy globals: The code avoids using raw session or post variables inside the core logic, which keeps things organized and easier to test.

How I use AI in my routine

Since I work alone, I don't have other developers around to review my code or tell me when I do something silly.

So, I use AI tools as a second pair of eyes. I don't ask AI to write the whole project for me. Instead, I write the code, paste it into the AI, and ask: "Look at this line by line. Did I leave any security hole? Is there any logic mistake here?"

It has been a great learning tool for me, helping me find bugs and write automated tests to make sure things don't break. Right now, the project has over 640 small automated tests checking the code.


Why I'm posting this

AI is helpful, but it's not a real human developer.

I know my code is not perfect. Being self-taught means there are blind spots in the way I think, and that’s why I want to share this project with you.

If you have some free time, feel free to visit the GitHub repository, read the files, test it, critique it, or try to break it:

I would really appreciate any honest feedback, advice, or suggestions from fellow developers. Thank you for reading!

Want more #ai & #php deep dives?

Join 5,958+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

2 Comments

1 vote
0

More Posts

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19

How AI Is Changing Web Development, and What Developers Still Need to Understand

Daniel Decker - Nov 10

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

Meet kalbee: State Estimation Without the Boilerplate

Vincente - Jul 18

A Textile Mill's Dyehouse Ramp Curve: Get One Step Wrong and the Sheet Belongs to the Master

aiomniu - Oct 18
chevron_left
140 Points • 8 Badges
1Posts
1Comments
2Connections
I am a self-taught student of software architecture. I am interested in programming languages ​​such... Show more

Related Jobs

View all jobs →

Commenters (This Week)

10 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!