edwindayot/shorty-framework

A test framework

Installs: 2

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/edwindayot/shorty-framework

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

This package is not auto-updated.

Last update: 2025-10-04 20:00:10 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();