edwindayot/shorty-framework

dev-master 2017-10-26 14:30 UTC

This package is not auto-updated.

Last update: 2024-04-20 13:28:02 UTC


README

Build Status

Use package at https://github.com/EdwinDayot/shorty

Start an application:

<?php

$app = new \Shorty\Framework\Application();
$app->run();

Get a response object from Application:

<?php

$app = new \Shorty\Framework\Application();
$response = $app->getResponse();

Add new routes:

<?php

$app = new \Shorty\Framework\Application();

$router = $app->getRouter();
$router->get('posts', function () {
    return 'posts';
});

$app->run();