phpieces / framework
A simple framework built with php league components
v0.1.1
2016-06-26 07:50 UTC
Requires
- php: ~5.5|~7.0
- jclyons52/php-query: ^1.2
- league/container: ^2.2
- league/plates: ^3.1
- league/route: ^2.0
- symfony/browser-kit: ^3.1
- zendframework/zend-diactoros: ^1.3
Requires (Dev)
- mockery/mockery: ^0.9.5
- phpunit/phpunit: ~4.0||~5.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-11-01 22:19:04 UTC
README
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.