MVC-which is the most lightweight PHP framework?

Source: Internet
Author: User
Tags codeigniter
What is the framework that is more lightweight than CodeIgniter and which contains only basic ORM and routing distributions? Even MVC is not included. Even a multi-inlet is also a wood relationship. Does this kind of thing have wood?

First, thank @yangff for the links provided. Learned a lot of things. But my needs are not quite the same as he is. For example Laravel in my here will not be selected, because I need is the ultimate light weight, basically only contains skeleton on it, validation god horse do not need.
In addition, I forgot to add a restriction condition. This project must be an international project, the domestic excellent framework such as TP is not in the scope of consideration for the time being.

Reply content:

What is the framework that is more lightweight than CodeIgniter and which contains only basic ORM and routing distributions? Even MVC is not included. Even a multi-inlet is also a wood relationship. Does this kind of thing have wood?

First, thank @yangff for the links provided. Learned a lot of things. But my needs are not quite the same as he is. For example Laravel in my here will not be selected, because I need is the ultimate light weight, basically only contains skeleton on it, validation god horse do not need.
In addition, I forgot to add a restriction condition. This project must be an international project, the domestic excellent framework such as TP is not in the scope of consideration for the time being.

Toro + ORM
ORM varies greatly depending on the type of website and should be chosen according to your hobbies and needs.

In fact, I would like to recommend Slim but in accordance with the requirements of the master of the above combination will be more appropriate:).

Http://fatfreeframework.com Fat-free Framework also known as F3
Less than 60k,09 years to now continue in maintenance
Light weight but not simple, routing, ORM,MVC support is very good, landlord can try

B2core .... There are 300 lines ...

http://slimframework.com/, I was looking for a similar frame with the main title, and finally I chose Slim.

http://segmentfault.com/q/1010000000313227
......?

http://yaf.laruence.com/manual/

Laravel frame?

Recommended thinkphp Framework
Not only lightweight, efficient, but also domestic, Chinese support is good, Chinese document comprehensive.

Thinkphp is simple.

Slim Good quality.

Although it is written by himself, far from the "international", but I think it is necessary to sell their own litphp here.

Website
Github Repo
Development Branch
Tutorial

Recommended reasons: 0.1 version Code lines = 270 lines, expressive, free to integrate any template/orm solution, there are actual production projects

A streamlined router library is recommended for routing controller Https://github.com/lloydzhou/router, which automatically retrieves variables from the request based on the mapped handler and supports custom error handler and hooks. Can be easily through the hook custom parameter filtering, login check and so on.

(new Router())->error(405, function($message){    header('Location: /hello/world', true, 302);})->get('/hello/:name', function($name){    echo "Hello $name !!!";})->execute();

A short and concise ActiveRecord Library is recommended, Lloydzhou/activerecord GitHub can achieve the effect of relation like yii. Document Address: http://lloydzhou.github.io/activerecord/

class User extends ActiveRecord{  public $table = 'user';  public $primaryKey = 'id';  public $relations = array(    'contacts' => array(self::HAS_MANY, 'Contact', 'user_id')  );}class Contact extends ActiveRecord{}$user = new User();// find one uservar_dump($user->notnull('id')->orderby('id desc')->find());echo "\nContact of User # {$user->id}\n";// get contacts by using relation://   'contacts' => array(self::HAS_MANY, 'Contact', 'user_id'),var_dump($user->contacts);

Tmdphp,www.tmdphp.com

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.