- 简单高效的现代应用框架。使用类似Ruby的Sinatra或Node的Express.js
- 致力于打造一个拥有最小化核心组件且尽量不依赖粗糙三方库的简单、智能和高效的框架。
- 高效不只是开发效率,还有执行效率。
- 不只WEB,CLI下的开发也做了很多优化。
- 只需要一套框架,便能快速完成一套高效Web应用的开发!
Write less, Do more!
- 简单,无配置就能使用,小应用可快速成型
- 智能,经过考虑的模式设计,
- 扩展,使用中间件方式随意扩展自己想要的
- 标准,基于PSR规范开发
- 性能,效率上优于目前所有主流框架
- 事件,所有类基于事件,随时随地用事件驱动
- 现代,支持主流的现代应用开发:Web/Cli, Restful, Xml/Yaml/Json/Ini, Jade/Twig?, Dependency Injector
已有项目
composer.phar require pagon/core
$app = new App();
// 使用匿名函数实现控制器
$app->get('/', function($req, $res){
$res->end('Hello world');
});
(The MIT License)
Copyright (c) 2012 hfcorriez <hfcorriez@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.