Download the PHP package adrosoftware/lmrp-loader without Composer

On this page you can find all versions of the php package adrosoftware/lmrp-loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lmrp-loader

Laminas Mezzio Routes and Pipeline Loader

Build status Coverage Status Latest Stable Version License

Purpose

When building a medium to large applications on Laminas Mezzio is better if you can organize your routes. By default mezzio 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 all 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:

Prefixing routes.

Since version 1.1 now you can use the name of the file to prefix the routes inside them. We create and inject a Prefixer class that behind the scenes uses the \Mezzio\Application $app to generate the routes.

For example let say you have routes.web.php and routes.api.php, in your index.php you use the prefix method instead of the load one, like this:

Then in your routes.web.php and routes.api.php you replace the definition of the anonymous function from

to

Now you are ready to use the $prefixer instead of the $app to create the routes:

As you can see, you can avoid typing /api on all the routes.

NOTE: If you don't want to prefix your route with /api then you can just use \Mezzio\Application $app normally.

Authors:

Adro Rocker.


All versions of lmrp-loader with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
laminas/laminas-stdlib Version ^3.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adrosoftware/lmrp-loader contains the following files

Loading the files please wait ....