Finding the best PHP based micro framework .
Finding the best PHP based micro framework .
PHP is the one of the best using 40% of the internet? also popular with “PHP hate” searching from internet search. Yes their is lover and hater always exist. In this episode I will talk about my PHP micro framework experience's with cost and pros.
Table Of Content
- Why Should I choose PHP
- Why Should I choose Micro-Framework ?
- Slim micro-framework
- Fat-Free micro-framework ?
- Which Framework and Why should I use ?
- FlightPHP Update-08.04.2025
- Making a conclusion
Why Should I choose PHP ?
- PHP is Easy to Learn
- PHP is Scalable
- PHP is Flexible
- PHP is Secure
- PHP is Compatible
- Every PHP version upgrade language getting more modern way
Why Should I choose Micro-Framework ?
Microframework is a container of code that includes features and functions. Micro frameworks decouple some features from others in a meaningful way. There are several micro frameworks you can choose from, but the decoupling part of every micro-framework might differ from one another.
These microframeworks are extractive from full-stack frameworks and are typically used to build small applications, send & receive HTTP requests, route HTTP requests to dedicated controllers, and create API applications for other tools and services.
Slim micro-framework
Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
https://www.slimframework.com/docs/v4/start/installation.html
I am
developing web application until slim 3 version and I love this
framework. Easy to Learn , Flexible and Scalable. First at all
this framework work extension base there is lots of stable
extension’s for template engine, database communication and
middleware extensions. Also suitable for big development
team.
Some of them
- PHP dotenv
- Laravel framework components from version 5.x
- IoC Container
- Session
- Database
- PHPMailer
- Sirius validation components
- Twig template engine
Slim Examples
https://github.com/remluben/slim-boilerplate is good start to develop slim4 application.
This project start to manage my brands. User information and brands store from file and easily can be modified.
Fat-Free micro-framework ?
A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust web applications — fast!
- full-featured toolkit
- super lightweight code base with just ~90kb
- easy to learn, use and extend
I am developing fat-free from first stable version I love it. Really fast and Flexible and Scalable.
https://fatfreeframework.com/3.8/user-guide
Fat-Free Examples
Which Framework and Why should I use ?
First at all you should write project Hardware requirements for a minimum traffic of concurrent users.
if you have limited resource
you should use fat-free.it is blazing fast and stable.
One of
the my fat-free base application running basing hosting plan 1
CPU and 500MB Ram. This project is a CMS solution. Every
database request and page view works with cache.47
concurrent user per
second.
if you have more resource and does not care speed as fat-free framework and developing commercial application you should use slim. In my opinion slim is more suitable for architectural design for big teams.
One of my commercial solution(magento, shopify alternative) which working basic hosting plan 1 CPU and 1024MB Ram. 20 concurrent user per second.
Both of these solution work fast if change hardware to dedicated server and make server optimization.
FlightPHP Update-08.04.2025
I recently migrated my project from Slim 3 and Fat-Free Framework to FlightPHP.
Why the switch?
I wanted
something even more lightweight, minimal, and easy to control —
no unnecessary overhead, just pure speed and simplicity.
So far, FlightPHP has been a great fit for building fast, modular apps with zero bloat. Also you can check the lastest document.
Making a conclusion
👨👦👦 Leave a comment, I am free for discussion with your any kind technical question.