Git Product home page Git Product logo

zim-ext's Introduction

The Zim Framework

About

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 via zim-ext , or you can choose the pure php implementation zim-php

The demo project zim

Requirements

  1. Zephir https://docs.zephir-lang.com/en/0.11/installation
  2. PHP >= 7.0

Install

  • requires phpize, php-config (from php-devel extension)
git clone https://github.com/henter/zim-ext
cd zim-ext/ext

run install to compile && install zim.so file

./install

or build the extension manually, follow ext/install shell script

/path/to/phpize
./configure --with-php-config=/path/to/php-config
make && 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

Usage

simple demo with php build-in server

index.php

<?php

use \Zim\Zim;
use \Zim\Routing\Route;

Route::get('/', function() {
    return 'hello zim';
});

Zim::run();

start simple server:

php -S localhost:8888

open http://localhost:8888

more usage at zim

Tests

see php version zim-php

Documentation

https://github.com/henter/zim/wiki

Contributing

Welcome !

Licence

MIT

zim-ext's People

Contributors

henter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.