下载
$ wget https://drone.io/github.com/hfcorriez/pagon/files/build/pagon-master.tar.gz
Git
$ git clone git@github.com:hfcorriez/pagon.git myapp $ composer install
Composer
$ composer.phar create-project pagon/pagon="dev-master" myapp
$app = Pagon::create(); $app->get('/', function($req, $res) { $res->render('index.php'); } ); $app->run();
$ ./bin/pagon serve Pagon serve at http://127.0.0.1:5000
内建服务器运行方式只适用于开发,生产环境请使用HTTP服务器来维护