Unic is a high performance, open source web application framework. Unic framework is fast, minimal and unopinionated web framework inspired by express. Unic is simple and flexible and provide lots of features to create apis and web application quickly.
Unic web framework is for PHP, so it's requires PHP 7.4 or newer. now you won’t need to setup anything just yet.
- Install
composerif you have not installed.
composer create-project unicframework/unic blogIt will create a blog project for you.
A simple Hello, World web application in unic framework.
use Unic\App;
$app = new App();
$app->get('/', function($req, $res) {
$res->send('Hello, World!');
});
$app->get('/api', function($req, $res) {
$res->json([
'status' => 'Ok',
]);
});
$app->start();- Learn more about Unic from Documentation file.
- Documentation : https://unicframework.github.io/docs
