2017 © Pedro Peláez
 

library silex-trailing-slash-handler

Handle requests missing a trailing slash in Silex by appending a slash and issuing an internal sub-request.

image

graze/silex-trailing-slash-handler

Handle requests missing a trailing slash in Silex by appending a slash and issuing an internal sub-request.

  • Tuesday, September 26, 2017
  • by graze
  • Repository
  • 10 Watchers
  • 5 Stars
  • 8,420 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

graze/silex-trailing-slash-handler

Build Status Coverage Status ![Quality Score][ico-quality] ![Latest Version][ico-package] ![PHP ~5.5][ico-engine] MIT Licensed, (*1)

Handle requests missing a trailing slash in Silex by appending a slash and issuing an internal sub-request., (*2)

See silexphp/Silex #149 for more information about the default Silex routing behavior., (*3)

, (*4)

Installation

We try to support all commonly used versions of Silex including:, (*5)

  • Silex 2 on master branch, ^2.0 releases, (*6)

    ~$ composer require graze/silex-trailing-slash-handler
    
  • Silex 1.3 on 1.x branch, ^1.0 releases, (*7)

    ~$ composer require graze/silex-trailing-slash-handler:^1.0
    

Usage

$app->get('/', function () {
    return 'Hello World!';
})

$provider = new \Graze\Silex\ControllerProvider\TrailingSlashControllerProvider();

$app->register($provider);
$app->mount('/', $provider);

:information_source: Define all your routes first before mounting the controller provider if you want routes with no trailing slash to be matched., (*8)

License

The content of this library is released under the MIT License by Nature Delivered Ltd., (*9)

You can find a copy of this license in LICENSE or at http://opensource.org/licenses/mit., (*10)

The Versions

26/09 2017

dev-master

9999999-dev

Handle requests missing a trailing slash in Silex by appending a slash and issuing an internal sub-request.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/09 2017

v2.0.0

2.0.0.0

Handle requests missing a trailing slash in Silex by appending a slash and issuing an internal sub-request.

  Sources   Download

MIT

The Requires

 

The Development Requires

25/09 2017

1.x-dev

1.9999999.9999999.9999999-dev

Handle requests missing a trailing slash in Silex by appending a slash and issuing an internal sub-request.

  Sources   Download

MIT

The Requires

 

The Development Requires

25/09 2017

v1.0.0

1.0.0.0

Handle requests missing a trailing slash in Silex by appending a slash and issuing an internal sub-request.

  Sources   Download

MIT

The Requires

 

The Development Requires

27/11 2015

v0.1.0

0.1.0.0

Handle requests missing a trailing slash in Silex by appending a slash and issuing an internal sub-request.

  Sources   Download

MIT

The Requires

 

The Development Requires