PHP code example of mparaiso / routeconfigserviceprovider

1. Go to this page and download the library: Download mparaiso/routeconfigserviceprovider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mparaiso / routeconfigserviceprovider example snippets


   Usage :
   $app->register( new RouteCollectionLoaderProvider,array(
       'mp.route_loader.cache'=>__DIR__."/Temp/",
       "mp.route_loader.debug"=>false,
       "mp.route_collections"=>array(
           "type"=>"yaml",
           "path"=>"routes.yaml",
           "prefix"=>"/prefix",
       )
   ));
   $app["mp.route_loader"]->append(array(
                    array(
                    "type"=>"yaml",
                    "path"=>__DIR__."/Resources/routes/routes.yml",
                    "prefix"=>"/",
                    ),
                 ...
   ));