All Versions
6
Latest Version
Avg Release Cycle
448 days
Latest Release
702 days ago

Changelog History

  • v2.0.1

    November 23, 2019
  • v2.0 Changes

    November 10, 2019
    • ๐Ÿ‘Œ Improved performance over previous versions
    • โฌ†๏ธ Bumped PHP version requirement to PHP 5.6 or higher (we recommend an officially supported version)
    • All function arguments that take an array are now type-hinted.
  • v1.2.0 Changes

    May 08, 2016

    โž• Added getRoutes to retrieve a full route mapping (#97)

    $router = new AltoRouter()$router-\>addRoutes(array(array('GET', '/login', 'show\_login\_action', 'show\_login'),array('POST', '/login', 'do\_login\_action', 'do\_login'),array('DELETE', '/logout', 'do\_logout\_action', 'do\_logout'),));$routes = $router-\>getRoutes();var\_export($routes);
    

    Will output:

    array (0 =\>array (0 =\> 'GET',1 =\> '/login',2 =\> 'show\_login\_action',3 =\> 'show\_login', ),1 =\>array (0 =\> 'POST',1 =\> '/login',2 =\> 'do\_login\_action',3 =\> 'do\_login', ),2 =\>array (0 =\> 'DELETE',1 =\> '/logout',2 =\> 'do\_logout\_action',3 =\> 'do\_logout', ),)
    

    ๐Ÿ“š Furthermore does this release concerns documentation changes.

    View all changes since v1.1.0.

  • v1.1.0 Changes

    April 17, 2014

    โž• Added addRoutes method for bulk adding routes (#68):

    $router = new AltoRouter();$router-\>addRoutes(array(array('GET', '/login', 'show\_login\_action', 'show\_login'),array('POST', '/login', 'do\_login\_action', 'do\_login'),array('DELETE', '/logout', 'do\_logout\_action', 'do\_logout'),));
    

    ๐Ÿ‘ AltoRouter now supports unicode regular expressions (#69).

    View all changes since v1.0.1.

    NB. Following Semver; this is now v1.1.0 instead of v1.0.2

  • v1.0.1 Changes

    January 23, 2014

    โž• Added support for custom match types:

    $router = new AltoRouter();$router-\>addMatchTypes(array('cId' =\> '[a-zA-Z]{2}[0-9](?:\_[0-9]++)?'));$router-\>map('GET', '/users/[cId:id]', 'customers#show', 'customers\_show');
    

    ๐Ÿ›  Fixed some bugs:

    • ๐Ÿ›  #38 #20 When a basePath is set, the custom route is not being checked against because the first character is not an @. (Fixed in 01258d1)
    • ๐Ÿ‘€ #22 A . was not seen as path separator for optional parts. (Fixed in #35)

    View all changes since v1.0.0.

  • v1.0.0

    October 07, 2013