HTTP Manager

HTTP Manager

A PHP 8.0+ Attributes Based HTTP Routing. Can be used for all cases, MVC and Middleware - Class/Method/Function

How to set-up Http Manager

https://packagist.org/packages/emma/http-manager https://github.com/debascoguy/Http-Manager Set-up your .htaccess file. For development on localhost using xamp/wamp. You can copy this sample htaccess code below into notepad and save the...

Written by admin
May 18, 2022

Request Mappings

Request Mapping The `RequestMapping` class is a PHP attribute that can be used to define routes and HTTP request methods for a class, method, or...

Written by admin
May 5, 2022

Http Request

Http Request Factory The above class is a factory class for creating and managing HTTP requests in PHP. It is responsible for creating the Request...

Written by admin
May 3, 2022

Http Response

Http Response Factory The above class is a factory class for creating and managing HTTP response in PHP. The ResponseFactory class is a PHP class...

Written by admin
May 3, 2022

Http Router

Router PathFinder : The `PathFinder` class is responsible for scanning and registering routes from classes, methods, and functions in the application. The `PathFinderFactory` class is...

Written by admin
May 3, 2022

Route Registry

The RouteRegistry class is a singleton that allows registration and retrieval of routable objects or functions.   Usage Example: use \Emma\Http\Mappings\PatchMapping; $routables = [ IndexController::class,...

Written by admin
May 3, 2022