Download the PHP package iosley/slim-auto-routes without Composer
On this page you can find all versions of the php package iosley/slim-auto-routes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download iosley/slim-auto-routes
More information about iosley/slim-auto-routes
Files in iosley/slim-auto-routes
Download iosley/slim-auto-routes
More information about iosley/slim-auto-routes
Files in iosley/slim-auto-routes
Vendor iosley
Package slim-auto-routes
Short Description The middleware for auto load routes to Slim Framework
License MIT
Homepage http://www.github.com/iosley/Slim-Auto-Routes
Package slim-auto-routes
Short Description The middleware for auto load routes to Slim Framework
License MIT
Homepage http://www.github.com/iosley/Slim-Auto-Routes
Please rate this library. Is it a good library?
Informations about the package slim-auto-routes
Slim-Auto-Routes
The middleware for auto load routes to Slim Framework
Installation
Using Composer (Recommended)
$ composer require iosley/slim-auto-routes
Usage
Just add your routes path to 'routes.path' in Slim config and add AutoRoutesMiddleware to slim middlerares stack.
Example
<?php
// index.php
$app = new \Slim\Slim();
$yourRoutesPath = 'routes';
$app->config('routes.path',$yourRoutesPath);
$app->add( new \Iosley\Slim\Provider\AutoRoutesMiddleware );
$app->run();
<?php
// routes/index.php
$app = \Slim\Slim::getInstance(); // need this, just if you change the variable name
$app->get('/', function() use ($app) {
echo 'Example of auto load routes to Slim Framework.'
});
License
The code is available at github project under MIT licence.
All versions of slim-auto-routes with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package iosley/slim-auto-routes contains the following files
Loading the files please wait ....