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
- Host: GitHub
- URL: https://github.com/sonidelav/php-micro-script
- Owner: sonidelav
- License: gpl-3.0
- Created: 2019-10-29T22:40:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T15:15:53.000Z (over 6 years ago)
- Last Synced: 2025-01-18T02:27:45.207Z (about 1 year ago)
- Topics: files, framework, merge, micro, php
- Language: PHP
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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(); ?>
```