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  
Name: LAGGOUNE Walid <contact>
Classes: 8 packages by
Country: Algeria Algeria
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

  Files folder image Files (49)  /  src  
File Role Description
Files folder imageapp (2 directories)
Files folder imageClasses (1 file, 4 directories)
Files folder imageExceptions (1 file)
Files folder imageInterfaces (5 directories)

  Files folder image Files (49)  /  src  /  app  
File Role Description
Files folder imagehttp (2 files, 3 directories)
Files folder imageviews (3 files, 1 directory)

  Files folder image Files (49)  /  src  /  app  /  http  
File Role Description
Files folder imageControllers (2 files)
Files folder imagemiddlewares (3 files)
Files folder imagerequest (1 file)
  Accessible without login Plain text file logs.txt Doc. Documentation
  Accessible without login Plain text file routes.php Example Example script

  Files folder image Files (49)  /  src  /  app  /  http  /  Controllers  
File Role Description
  Plain text file Container.php Class Class source
  Plain text file HomeController.php Class Class source

  Files folder image Files (49)  /  src  /  app  /  http  /  middlewares  
File Role Description
  Plain text file BasicMiddleware.php Class Class source
  Plain text file HttpRequestLimiterMiddleware.php Class Class source
  Plain text file ValidateHttpRequestsMiddleware.php Class Class source

  Files folder image Files (49)  /  src  /  app  /  http  /  request  
File Role Description
  Accessible without login Plain text file limits.json Data Auxiliary data

  Files folder image Files (49)  /  src  /  app  /  views  
File Role Description
Files folder imageerrors (3 files)
  Accessible without login Image file hd.jpeg Data Auxiliary data
  Accessible without login Plain text file home.php Example Example script
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files (49)  /  src  /  app  /  views  /  errors  
File Role Description
  Accessible without login Plain text file 400.php Aux. Auxiliary script
  Accessible without login Plain text file 404.php Aux. Auxiliary script
  Accessible without login Plain text file http.php Aux. Auxiliary script

  Files folder image Files (49)  /  src  /  Classes  
File Role Description
Files folder imageRouter (2 files, 1 directory)
Files folder imageSession (1 file)
Files folder imageValidator (2 files)
Files folder imageView (1 file)
  Plain text file Loger.php Class Class source

  Files folder image Files (49)  /  src  /  Classes  /  Router  
File Role Description
Files folder imageRequest (4 files)
  Plain text file HttpCache.php Class Class source
  Plain text file Router.php Class Class source

  Files folder image Files (49)  /  src  /  Classes  /  Router  /  Request  
File Role Description
  Plain text file File.php Class Class source
  Plain text file HttpRequestLimiter.php Class Class source
  Plain text file Middleware.php Class Class source
  Plain text file Request.php Class Class source

  Files folder image Files (49)  /  src  /  Classes  /  Session  
File Role Description
  Plain text file Session.php Class Class source

  Files folder image Files (49)  /  src  /  Classes  /  Validator  
File Role Description
  Plain text file Validator.php Class Class source
  Plain text file ValidatorFactory.php Class Class source

  Files folder image Files (49)  /  src  /  Classes  /  View  
File Role Description
  Plain text file View.php Class Class source

  Files folder image Files (49)  /  src  /  Exceptions  
File Role Description
  Plain text file HydrogenExceptions.php Class Class source

  Files folder image Files (49)  /  src  /  Interfaces  
File Role Description
Files folder imageMiddleware (1 file)
Files folder imageRouter (1 file, 1 directory)
Files folder imageSession (1 file)
Files folder imageValidator (1 file)
Files folder imageView (1 file)

  Files folder image Files (49)  /  src  /  Interfaces  /  Middleware  
File Role Description
  Plain text file MiddlewareInterface.php Class Class source

  Files folder image Files (49)  /  src  /  Interfaces  /  Router  
File Role Description
Files folder imageRequest (2 files)
  Plain text file RouterInterface.php Class Class source

  Files folder image Files (49)  /  src  /  Interfaces  /  Router  /  Request  
File Role Description
  Plain text file HttpRequestLimiterInterface.php Class Class source
  Plain text file RequestInterface.php Class Class source

  Files folder image Files (49)  /  src  /  Interfaces  /  Session  
File Role Description
  Plain text file SessionInterface.php Class Class source

  Files folder image Files (49)  /  src  /  Interfaces  /  Validator  
File Role Description
  Plain text file ValidatorInterface.php Class Class source

  Files folder image Files (49)  /  src  /  Interfaces  /  View  
File Role Description
  Plain text file ViewInterface.php Class Class source

  Files folder image Files (49)  /  vendor  
File Role Description
Files folder imagecomposer (8 files)
  Accessible without login Plain text file autoload.php Aux. Auxiliary script

  Files folder image Files (49)  /  vendor  /  composer  
File Role Description
  Accessible without login Plain text file autoload_classmap.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_namespaces.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_psr4.php Aux. Auxiliary script
  Plain text file autoload_real.php Class Class source
  Plain text file autoload_static.php Class Class source
  Plain text file ClassLoader.php Class Class source
  Accessible without login Plain text file installed.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text

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