brtriver / silex-phar

Build silex.phar file by box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build silex.phar file by box

build phar file of silex , which is a php micro framework. There is Japanese article of this.

Install

git clone https://github.com/brtriver/silex-phar.git
cd silex-phar
make install

Build phar file

make build

So silex.phar file is created in root directory.

Usage

Use built silex.phar file in your project.

Demo code is index.php. You have only to use phar://silex.phar instead of default one.

<?php
require_once 'phar://silex.phar/vendor/autoload.php';
...

You can check demo application with build-in server:

make server

and open http://localhost:8888/hello/brtriver with your browser.

License

This code is licensed under the MIT license.

About

Build silex.phar file by box


Languages

Language:Makefile 57.5%Language:PHP 42.5%