PHP Classes

WayMaker PHP Get Route Parameters: Parse request route path to extract its parameters

Recommend this page to a friend!

  Author Author  
Picture of Ali YILMAZ
Name: Ali YILMAZ <contact>
Classes: 10 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 6x


  Detailed description   Download Download .zip .tar.gz  
This class can parse the request route path to extract its parameters.

It can take a string with an HTTP route specification as a parameter and parses it to extract its parameters.

Currently, it can extract the route controller name and a list of parameter names that may define the actions that a controller may execute.

Details

What is wayMaker ?

It is used to separate the way and parameters.

data:

$str = 'app/controller:insert@redirect';
// $str = 'app/controller:insert';
// $str = 'app/controller';

Out-of-class use:

code:

require_once('Mind.php');
$m = new Mind();
print_r($m::aliyilmaz('wayMaker')->wayMaker($str));

When using it in the class:

code:

print_r(self::aliyilmaz('wayMaker')->wayMaker($str));

output:

Array
(
    [way] => app/controller
    [params] => Array
        (
            [0] => insert
            [1] => redirect
        )

)

Dependencies

This package has no dependencies.

License

Instructions and files in this directory are shared under the GPL3 license.


  Classes of Ali YILMAZ  >  WayMaker PHP Get Route Parameters  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: WayMaker PHP Get Route Parameters
Base name: waymaker
Description: Parse request route path to extract its parameters
Version: -
PHP version: 5
License: GNU General Public License (GPL)
 
  Groups   Applications   Files Files  

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Parsers Programming language interpreters and format parsers View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

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

Download Download all files: waymaker.tar.gz waymaker.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
For more information send a message to info at phpclasses dot org.