erandirjunior / plug-route

Plug Route - PHP Route Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plug-route

Latest Stable Version License Code Intelligence Status

Powerful library for PHP routes

Use the system to work with GET, POST, PUT, DELETE, PATCH and OPTIONS requests.

Work with json, form-data and x-www-form-urlencoded body requests.

Use routes without virtualhost.

Simple and fast.

Install

composer require erandir/plug-route

Basic usage

$route = new \PlugRoute\PlugRoute();

$route->get('/')
    ->callback(function() {
        echo 'basic route';
    });

$route->run();

Old version

Install and use an old version, run:

composer require erandir/plug-route:v4.4

Access old documentation for a complete use.

About

Plug Route - PHP Route Library

License:MIT License


Languages

Language:PHP 99.8%Language:Dockerfile 0.2%