Skip to content

pedrofaria/hope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hope

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

About

Hope is a very fast PHP microframework

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages