- Notifications
You must be signed in to change notification settings - Fork0
henter/zim-ext
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Zim is a simple framework inspired(copy/paste 😄) by Yaf, Laravel, Symfony, based on Zephir Language.
Delivered as a C extension for the PHP language viazim-ext , or you can choose the pure php implementationzim-php
The demo projectzim
- Zephirhttps://docs.zephir-lang.com/en/0.11/installation
- PHP >= 7.0
- requires
phpize
,php-config
(fromphp-devel
extension)
git clone https://github.com/henter/zim-extcd zim-ext/ext
runinstall
to compile && install zim.so file
./install
or build the extension manually, followext/install
shell script
/path/to/phpize./configure --with-php-config=/path/to/php-configmake && make install
Then enable zim extension to your php.ini (after json.so)
extension=zim.so
check if is installed successful
php -m|grep zim
simple demo with php build-in server
index.php
<?phpuse \Zim\Zim;use \Zim\Routing\Route;Route::get('/',function() {return'hello zim';});Zim::run();
start simple server:
php -S localhost:8888
more usage atzim
see php versionzim-php
https://github.com/henter/zim/wiki
Welcome !
MIT