ข้อความโดย: อั๋น ทรงวุฒิ
« เมื่อ: 15 ธันวาคม 2015, 12:56:54 PM »1. Flight php http://flightphp.com/
Size : 41KB
Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web
applications.
requires PHP 5.3 or greater.
2. meedo http://medoo.in/
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 http://silex.sensiolabs.org/
Size : 79KB
Silex is a PHP microframework for PHP. It is built on the shoulders of Symfony2 and Pimple and also inspired by
sinatra.
4. Slim Framework http://www.slimframework.com/
Size : 104KB
บทความแนะนำ ภาษาไทย
https://selfscript.wordpress.com/2016/07/10/เริ่มต้นเขียนเว็บง่ายๆ/
https://selfscript.wordpress.com/2016/07/10/การใช้-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.
5. Simple MVC http://simplemvcframework.com/php-framework
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
engine
Simple Theme Files. As well as full control over views themes can be used to quickly change the look of your
application/website
6. Fat-Free http://fatfreeframework.com/home
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 http://www.popphp.org/
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
Size : 41KB
Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web
applications.
requires PHP 5.3 or greater.
อ้างถึง
require 'flight/Flight.php';
Flight::route('/', function(){
echo 'hello world!';
});
Flight::start();
2. meedo http://medoo.in/
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 http://silex.sensiolabs.org/
Size : 79KB
Silex is a PHP microframework for PHP. It is built on the shoulders of Symfony2 and Pimple and also inspired by
sinatra.
อ้างถึง
equire_once __DIR__.'/../vendor/autoload.php';
$app = new Silex\Application();
$app->get('/hello/{name}', function($name) use($app) {
return 'Hello '.$app->escape($name);
});
$app->run();
4. Slim Framework http://www.slimframework.com/
Size : 104KB
บทความแนะนำ ภาษาไทย
https://selfscript.wordpress.com/2016/07/10/เริ่มต้นเขียนเว็บง่ายๆ/
https://selfscript.wordpress.com/2016/07/10/การใช้-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.
อ้างถึง
<?php
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;
});
$app->run();
5. Simple MVC http://simplemvcframework.com/php-framework
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
engine
Simple Theme Files. As well as full control over views themes can be used to quickly change the look of your
application/website
6. Fat-Free http://fatfreeframework.com/home
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 http://www.popphp.org/
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