OnePHP
a super simple and super lightweight PHP framework
that works in just a few lines:// index.php
require_once('src/OnePHP/one_framework.php');
$app = new \OnePHP\App();
$app->get('/:name',function( $name ) use ( $app ){//Action
echo "Hello $name";
});
$app->listen();
To install using composer:
composer create-project julces/oneframework
Why
OnePHP
:1- Restful Routes
2- Easy and clean (GET, POST, PUT, DELETE...) Requests management
3- Restful Response with HTTP Status Code and custom Headers
4- PHP native Views
5- No dependencies, add extra libraries only when you need it.
#php #framework #onePHP