build phar file of silex
, which is a php micro framework.
There is Japanese article of this.
git clone https://github.com/brtriver/silex-phar.git
cd silex-phar
make install
make build
So silex.phar
file is created in root directory.
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.
This code is licensed under the MIT license.