PHP code example of marlosoft / silex-routing-provider
1. Go to this page and download the library: Download marlosoft/silex-routing-provider 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/ */
marlosoft / silex-routing-provider example snippets
use Doctrine\Common\Annotations\AnnotationRegistry;
$autoload =
use Marlosoft\Silex\Provider\RoutingServiceProvider;
$app = new Application();
$app->register(new RoutingServiceProvider(), [
'routes.directories' => ['/path/to/controllers/directory/']
]);