zim ext
1.0.0
Zim是基于Zephir语言的Yaf,Laravel,Symfony的简单框架(复制/粘贴?)。
通过Zim-ext作为PHP语言的C扩展提供,或者您可以选择纯PHP实现Zim-PHP
演示项目Zim
phpize , php-config (来自php-devel扩展) git clone https://github.com/henter/zim-ext
cd zim-ext/ext
运行install以编译&&安装zim.so文件
./install
或手动构建扩展程序,请按照ext/install Shell脚本构建
/path/to/phpize
./configure --with-php-config=/path/to/php-config
make && make install
然后将Zim扩展启用到您的php.ini(JSON.SO之后)
extension=zim.so
检查是否已安装成功
php -m|grep zim
使用PHP Build-In服务器的简单演示
index.php
<?php
use Zim Zim ;
use Zim Routing Route ;
Route:: get ( ' / ' , function () {
return ' hello zim ' ;
});
Zim:: run ();启动简单服务器:
php -S localhost:8888
打开http:// localhost:8888
Zim的更多用法
请参阅PHP版本Zim-PHP
https://github.com/henter/zim/wiki
欢迎 !
麻省理工学院