PHP Classes

ATK4 FastRoute: Process HTTP requests using configured routes

Recommend this page to a friend!
  Info   View files Example   View files View files (40)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 72 All time: 10,142 This week: 135Up
Version License PHP version Categories
atk4-fastroute 1.0.0MIT/X Consortium ...7HTTP, Design Patterns, PHP 7, Traits
Collaborate with this project 

Author

atk4-fastroute - github.com

Description

This package can process HTTP requests using configured routes.

It can configure one or more routes by specifying a URL pattern to match, HTTP methods, and code that should be called when the current HTTP request matches that route.

The package can also process the current HTTP request and call the code associated to the route that matches the current request URL.

Picture of Francesco Danti
  Performance   Level  
Name: Francesco Danti <contact>
Classes: 7 packages by
Country: Italy Italy
Age: 45
All time rank: 3497140 in Italy Italy
Week rank: 34 Up2 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x

Example

<?php

include __DIR__.'/bootstrap.php';

$router = new \Abbadon1334\ATKFastRoute\Router(new \atk4\ui\App(['always_run' => false]));
$router->loadRoutes(__DIR__.'/config/routes.php', 'php-inline');
$router->run();


  Files folder image Files  
File Role Description
Files folder imagedemos (6 files, 2 directories)
Files folder imagesrc (1 file, 4 directories)
Files folder imagetests (1 file)
Accessible without login Plain text file .codeclimate.yml Data Auxiliary data
Accessible without login Plain text file .coveralls.yml Data Auxiliary data
Accessible without login Plain text file .phpmetrics.json Data Auxiliary data
Accessible without login Plain text file .php_cs.dist Example Example script
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file renovate.json Data Auxiliary data

  Files folder image Files  /  demos  
File Role Description
Files folder imageconfig (1 file)
Files folder imagestatic_assets (1 file)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Plain text file bootstrap.php Class Class source
  Plain text file cached.php Class Class source
  Plain text file index.php Class Class source
  Accessible without login Plain text file static.php Example Example script
  Accessible without login Plain text file using-config.php Example Example script

  Files folder image Files  /  demos  /  config  
File Role Description
  Accessible without login Plain text file routes.php Aux. Auxiliary script

  Files folder image Files  /  demos  /  static_assets  
File Role Description
  Accessible without login Plain text file test.css Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageException (3 files)
Files folder imageHandler (4 files, 1 directory)
Files folder imageRoute (2 files)
Files folder imageView (3 files)
  Plain text file Router.php Class Class source

  Files folder image Files  /  src  /  Exception  
File Role Description
  Plain text file StaticFileExtensionNotAllowed.php Class Class source
  Plain text file StaticFileNotAllowedFolder.php Class Class source
  Plain text file StaticFileNotExists.php Class Class source

  Files folder image Files  /  src  /  Handler  
File Role Description
Files folder imageContracts (7 files)
  Plain text file RoutedCallable.php Class Class source
  Plain text file RoutedMethod.php Class Class source
  Plain text file RoutedServeStatic.php Class Class source
  Plain text file RoutedUI.php Class Class source

  Files folder image Files  /  src  /  Handler  /  Contracts  
File Role Description
  Plain text file AfterRoutableTrait.php Class Class source
  Plain text file BeforeRoutableTrait.php Class Class source
  Plain text file iAfterRoutable.php Class Class source
  Plain text file iArrayable.php Class Class source
  Plain text file iBeforeRoutable.php Class Class source
  Plain text file iNeedAppRun.php Class Class source
  Plain text file iOnRoute.php Class Class source

  Files folder image Files  /  src  /  Route  
File Role Description
  Plain text file iRoute.php Class Class source
  Plain text file Route.php Class Class source

  Files folder image Files  /  src  /  View  
File Role Description
  Plain text file AbstractView.php Class Class source
  Plain text file MethodNotAllowed.php Class Class source
  Plain text file NotFound.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file RouterTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:72
This week:0
All time:10,142
This week:135Up