borsch/application

Borsch Framework application.

1.6 2020-05-02 03:58 UTC

This package is auto-updated.

Last update: 2024-10-29 05:59:33 UTC


README

Borsch Framework application wrapper.

This package is part of the Borsch Framework.

Installation

Via composer :

composer require borsch/application

Usage

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

use Borsch\Application\App;
use Laminas\Diactoros\ServerRequestFactory;

$app = new App();

$pipeline = (require_once __DIR__.'/config/pipeline.php');
$routes = (require_once __DIR__.'/config/routes.php');

$pipeline($app);
$routes($app);

$app->run(ServerRequestFactory::fromGlobals());

License

The package is licensed under the MIT license. See License File for more information.