sonidelav / php-micro-script

PHP Micro Framework for Scripting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Micro Script Framework

This is a micro php framework to help you write php scripts in a OOP way and merge all required files in a single php file.

Install

$ composer install

Build

$ composer build

Compiled Example

<?php class ArrayHelper{...};class HttpRequest{...};class HttpResponse{...};$routes = array('/' => function (HttpRequest $req, HttpResponse $res) {$hello = $req->get('hello');$json = $req->get('json');if (!empty($hello)) {$res->body("Hello {$hello}");if ($json) {$res->json();}}return $res;});;class Application{...};(new Application())->run(); ?>

About

PHP Micro Framework for Scripting

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%