Download the PHP package adrosoftware/zerp-loader without Composer
On this page you can find all versions of the php package adrosoftware/zerp-loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adrosoftware/zerp-loader
More information about adrosoftware/zerp-loader
Files in adrosoftware/zerp-loader
Package zerp-loader
Short Description Zend Expressive helper class to load routes files and pipelines.
License MIT
Homepage http://github.com/adrosoftware/zerp-loader
Informations about the package zerp-loader
This package is abandoned
Since Zend migrated to be Laminas, now I created a new package for Mezzio
Zend Expressive Routes and Pipeline Loader
Purpose
When building a medium to large applications on Zend Expressive is better if you can organize your routes. By default expressive define all the routes in the routes.php
file under the config
directory. For me is better if you can at least organize the routes by modules of routes prefix. For example routes.web.php
for all the web routes and routes.api.php
for al the api routes.
Usage
The public/index.php
file by default look like this:
Assuming you have config/routes.web.php
and config/routes.api.php
and so on, then replace:
With something like this: