|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2022-07-13 (6 months ago) ||Not yet rated by the users||Total: 38 ||All time: 10,575 This week: 189|
This package can route requests to functions or controller classes.
It can register several URL patterns that the developer wants that his Web application handles.
The package associates controller classes or callback functions to handle those requests.
The callback functions may take parameters with values extracted from the current HTTP request URL.
The package may call the controller class by invoking a specific class function defined in the registered URL pattern associated with the controller class.
The package can also process the current HTTP request and invoke the callback function or controller class associated with the URL pattern that matches the current URL pattern.
This is a simple php module that will help you write clear route in php application
wepesi is a simple mini-framawork that help to create simple wep application using OOP logic.
it provide :
- validation for more : https://github.com/bim-g/wepesi_validation
- token (generator & validator)
- ORM design for mySQL for more : https://github.com/bim-g/Wepesi-ORM
- session management
you can find more about comple module on : https://github.com/kivudesign/Wepesi-Quick
create an instance of the router, that will help implemet request method, assume that you should call the method run at the end of all the method to take into consideration all the route define.
echo "<h3>welcome to WEPESI ROUTING</h3>";
GET: while define a get method, you provide the route name to reach and the action to execute. that action can be a `callable` function or method of a class is define on the class folder.
echo "welcome to the root";
as you can seen in the example below, we want to reach the route `localhost/hello` and the action will be `hello` a method define on the class user `user#sayHello`.
in case this method is not define that class it will not passe.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.