Skip to content
/ nano Public

A tiny api framework written in PHP

License

Notifications You must be signed in to change notification settings

dnrobin/nano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nano

A tiny API framework written in PHP for quick project prototypes.

Getting Started

require_once __DIR__ . '/vendor/autoload.php';

$api = new nano\Server();

# serve text from root
$api->get('/', function () {
    echo "Hello, World!";
});

$api->run();