pedrofaria / hope
There is no license information available for the latest version (1.0.0) of this package.
Hope microframework
1.0.0
2017-04-09 00:19 UTC
Requires
- php: >=5.6.4
- pedrofaria/router: ^1.0.0
- php-di/php-di: ^5.4
- symfony/http-foundation: ^3.2
Requires (Dev)
This package is not auto-updated.
Last update: 2024-04-28 00:21:35 UTC
README
Hope is a very lightweight PHP microframework.
Check a example of Hope application
Installation
$ composer require pedrofaria/hope
Usage
Very simple usage of Hope microframework.
$app = new Hope\Application; $app->setRoute(function(Hope\Router\RouteCollector $route) { $route->add('GET', '/ping', function() { return ['data' => 'pong']; }); }); $app->bootstrap(); $app->run();
And that's it!
Documentation
Check the Wiki with all Hope documentation.
Running Tests
Codeception was chosen on this project to support all tests. To run, use the command below:
$ vendor/bin/codecept run unit
If you want run with code coverage, use the follow command and the HTML report will be available at tests/_output/coverage
.
$ vendor/bin/codecept run unit --coverage --coverage-html