【文件属性】:
文件名称:Vanilla:PHP微框架
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-11 13:55:24
PHP
香草
安装
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar require noidhoon/vanilla dev-master
入门
use Vanilla \ Vanilla ;
require_once __DIR__ . '/../vendor/autoload.php' ;
$ application = new Vanilla ();
$ application -> get ( '/' , function () use ( $ application ) {
print 'Hello World' ;
});
$ application -> run ();
变数
$ application -> vanilla_variables -> set ( 'key' ,
【文件预览】:
Vanilla-master
----composer.json(520B)
----src()
--------Vanilla()
----README.md(1KB)