daedalus-web / router
Module that handles request routing from project .env file
Requires
- php: ^7.0
- daedalus-web/dotenv: ^2.0
- daedalus-web/requests: ^1.0
- daedalus-web/sessions: ^2.0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2021-10-04 19:28:59 UTC
README
Request routing module for the Daedalus web application framework.
Installation
This module is typically used as part of a Daedalus web application. If you'd like to use it on your own non-Daedalus project, you can add the following to your composer.json file:
{ "require": { "daedalus-web/dotenv": "^2.0" } }
Usage
This module routes incoming requests to the Daedalus web framework to the correct application controller.
// Add a route in your routes/web.php file Route::get('/app', 'ApplicationController::index'); Route::get('/app/{id}', 'ApplicationController::read'); Route::post('/app', 'ApplicationController::create');
About
Requirements
Daedalus Router is fully tested to work with:
- PHP 7.0
- PHP 7.1
- PHP 7.2
Strictly speaking, this module can be modified to support PHP 5.5+, however we use strict variable typing that is not available in PHP versions before 7.0. Because PHP 5.6 is no longer receiving active support (and will only be receiving security updates for another year), we strongly recommend starting any new project with PHP 7 or later.
Submitting bugs and feature requests
Bugs and feature request are tracked on GitHub
Author
Josh Grancell - josh@joshgrancell.com - https://github.com/jgrancell
License
Daedalus Router is licensed under the MIT License - see the LICENSE
file for details