PHP Classes

Hydrogen framework: Handle request by controller with configured route

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 162 All time: 8,941 This week: 455Up
Version License PHP version Categories
hydrogenframework 1.0.10Custom (specified...5HTTP, PHP 5, Design Patterns
Description 

Author

This package can handle request by controller with configured route.

It can load configuration script that defines the request URL path patterns and methods and the respective controller.

The package can match the configured routes and dispatch requests to the matching controller classes.

Picture of LAGGOUNE Walid
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

 

Example

<?php

if (!file_exists("vendor/autoload.php")) {
    die(
"autoload.php not found try to use : composer dump -o");
}

require
"vendor/autoload.php";

use
src\Classes\Router\Router as Router;

$router = new Router;
$router->loadRoutes();


  Files folder image Files (49)  
File Role Description
Files folder imagesrc (4 directories)
Files folder imagevendor (1 file, 1 directory)
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Plain text file boot.php Example Example script
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:162
This week:0
All time:8,941
This week:455Up