phpieces/framework

A simple framework built with php league components

v0.1.1 2016-06-26 07:50 UTC

This package is not auto-updated.

Last update: 2024-11-15 22:26:00 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

A simple framework built with php league components

Install

Via Composer

$ composer require phpieces/framework

Usage

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

$config = [
    'template_dir' => 'template/folder'
];

$app = new App($config);

$app->get('/', function(ServerRequestInterface $request, ResponseInterface $response) {
    $response->getBody()->write($this->templates->render('home'));

    return $response;
});

$app->run();

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email jclyons52@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.