An open API service indexing awesome lists of open source software.

https://github.com/sonidelav/php-micro-script

PHP Micro Framework for Scripting
https://github.com/sonidelav/php-micro-script

files framework merge micro php

Last synced: 9 months ago
JSON representation

PHP Micro Framework for Scripting

Awesome Lists containing this project

README

          

# 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
```bash
$ composer install
```

### Build
```bash
$ composer build
```

### Compiled Example

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