pedrofaria / hope
Hope microframework
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pedrofaria/hope
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: 2025-10-12 07:34:02 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