1fabiosoares / fastflight
此包已被弃用且不再维护。未建议替代包。
框架 PHP
v0.0.1
2017-03-05 15:09 UTC
Requires
- firebase/php-jwt: ^4.0
- mikecao/flight: ^1.3
This package is not auto-updated.
Last update: 2020-08-21 22:11:07 UTC
README
高效使用Flight微框架。
<?php
namespace app\controller;
use core\fast\FastController;
use core\http\Response;
class HelloController extends FastController {
public function render(){
Response::view('hello', ['message' => "It Works"]);
}
}
什么是Flight?
Flight是一个快速、简单、可扩展的PHP框架。Flight可以帮助您快速轻松地构建RESTful Web应用程序...但在这里你可以看到更多。
require 'flight/Flight.php';
Flight::route('/', function(){
echo 'hello world!';
});
Flight::start();
查看真正的Flight。
什么是Fast Flight?
FastFlight是Flight的扩展,允许您像Flight一样简单地使用MVC。您可以开发大型和小的程序。
它简单易扩展,没有复杂性。
如何开始?
您需要已安装Composer和PHP 7.0或更高版本。
$ composer create-project 1fabiosoares/fastflight nameOfProject
$ cd nameOfProject/www
$ php -S localhost:8000
或者您可以克隆项目
$ git clone https://github.com/1fabiosoares/FastFlight.git
$ cd FastFlight
$ composer install
$ cd www
$ php -S localhost:8000
然后您就可以开始了! :)