GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - unicframework/docs: Unic is a high performance, open source web framework

BranchesTags
Open more actions menu

Latest commit

 

History

133 Commits
133 Commits

Folders and files

NameName
Last commit message
Last commit date
Cookie.md
Cookie.md
 
 
File-uplading.md
File-uplading.md
 
 
Installation.md
Installation.md
 
 
LICENSE
LICENSE
 
 
Middlewares.md
Middlewares.md
 
 
README.md
README.md
 
 
Response.md
Response.md
 
 
Routing.md
Routing.md
 
 
Session.md
Session.md
 
 
Static-files.md
Static-files.md
 
 
Views.md
Views.md
 
 
_config.yml
_config.yml
 
 
unic-logo.jpg
unic-logo.jpg
 
 

Repository files navigation

Unic Framework

Unic Logo

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.

Features

  • Fast and flexible.
  • Extremely light weight.
  • Minimal and unopinionated.
  • Simple and robust routing.
  • Robust middlewares.

User Guide

  • Installation
  • Routing
  • Middlewares
  • Response
  • Views
  • Static files
  • Session
  • Cookie
  • File Uploading

Simple Example

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

OpenSwoole Example

A simple Hello, World web application in unic framework using OpenSwoole server.

use Unic\App;
use OpenSwoole\Http\Server;

$app = new App();
$server = new Server("127.0.0.1", 3000);

$app->get('/', function($req, $res) {
    $res->send('Hello, World!');
});

$app->get('/api', function($req, $res) {
    $res->json([
        'status' => 'Ok',
    ]);
});

$app->useOpenSwooleServer($server);
$app->start();

Run OpenSwoole app:

php server.php

It will start openswoole server at localhost

License

MIT License

About

Unic is a high performance, open source web framework

unicframework.github.io/docs

Topics

phpphp-frameworkunicunic-frameworkweb-framework

Resources

Readme
MIT license
Activity
Custom properties

Stars

8 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.