PHP Framework ขนาดเล็ก

  • 0 ตอบ
  • 5634 อ่าน

อั๋น ทรงวุฒิ

  • Sr. Member
  • ****
  • 326
  • 3
  • แพร่ เวียงโกศัย
    • ดูรายละเอียด
PHP Framework ขนาดเล็ก
« เมื่อ: 15 ธันวาคม 2015, 12:56:54 PM »
1. Flight php

Size : 41KB

Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web


requires PHP 5.3 or greater.

require 'flight/Flight.php';

Flight::route('/', function(){
    echo 'hello world!';


2. meedo

Size : 46KB

20KB around with only one file.

Extremely easy to learn and use, friendly construction. Support various common and complex SQL queries.

3. Silex

Size : 79KB

Silex is a PHP microframework for PHP. It is built on the shoulders of Symfony2 and Pimple and also inspired by


equire_once __DIR__.'/../vendor/autoload.php';

$app = new Silex\Application();

$app->get('/hello/{name}', function($name) use($app) {
    return 'Hello '.$app->escape($name);


4. Slim Framework

Size : 104KB

บทความแนะนำ ภาษาไทยเริ่มต้นเขียนเว็บง่ายๆ/การใช้-mvc-pattern-ร่วมกับ-slim-framework/

PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.

Slim provides a fast and powerful router that maps route callbacks to specific HTTP request methods and URIs.

Build your application with concentric middleware to tweak the HTTP request and response objects around your

Slim app.

Slim supports any PSR-7 HTTP message implementation so you may inspect and manipulate HTTP message

method, status, URI, headers, cookies, and body.


use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;

require 'vendor/autoload.php';

$app = new \Slim\App;
$app->get('/hello/{name}', function (Request $request, Response $response) {
    $name = $request->getAttribute('name');
    $response->getBody()->write("Hello, $name");

    return $response;

5. Simple MVC

Size : 137KB

No complicated setup, set the site path, default controller and you're good to go

MySQL is provided using a PDO helper, of course this can be swapped to MySQLI, Medoo or another database


Simple Theme Files. As well as full control over views themes can be used to quickly change the look of your


6. Fat-Free

Size : 193KB

F3 supports both SQL and NoSQL databases off-the-shelf: MySQL, SQLite, MSSQL/Sybase, PostgreSQL, MongoDB

and its own lightning fast Flat-File DB (we call it Jig). It also comes with powerful object-relational mappers for data

abstraction and modeling that are just as lightweight as the framework. No configuration needed.

F3 can also shield you from spam and DoS attacks, by performing DNSBL checks. It can increase your server

health and uptime, by controlling web server traffic with profile analysis and bandwidth throttle.

    Fast and clean template engine
    Unit testing toolkit
    Database-managed sessions
    Markdown-to-HTML converter
    Atom/RSS feed reader
    Image processor
    Geodata handler
    On-the-fly Javascript/CSS compressor
    OpenID (consumer)
    Custom logger
    Basket/Shopping cart
    Pingback server/consumer
    Unicode-aware string functions
    SMTP over SSL/TLS
    Tools for communicating with other servers
    Data Validation
    and more Plugins from the F3-Community

7. pop php

Size : 764KB

The Pop PHP Framework is a full application-stack framework to help facilitate the building and writing of PHP

applications. It has many useful components that can be used within an application or as standalone components

as well. The core component is popphp/pophp, which contains the base components to get started

« แก้ไขครั้งสุดท้าย: 17 ธันวาคม 2017, 04:55:28 PM โดย อั๋น ทรงวุฒิ »