edwindayot/shorty-framework

A test framework

Maintainers

Package info

github.com/EdwinDayot/shorty-framework

pkg:composer/edwindayot/shorty-framework

Statistics

Installs: 2

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

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

This package is not auto-updated.

Last update: 2026-03-07 21:54:16 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();