Skip to content

sonidelav/php-micro-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(); ?>

Releases

No releases published

Packages

No packages published

Languages