Download the PHP package thecodingmachine/laravel-universal-service-provider without Composer

On this page you can find all versions of the php package thecodingmachine/laravel-universal-service-provider. 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 laravel-universal-service-provider

container-interop/service-provider bridge for Laravel

Import service-provider as defined in container-interop into a Laravel application.

Usage

Installation

Add the package in composer:

Add \TheCodingMachine\Laravel\ContainerInteropBridgeServiceProvider in your config/app.php file.

config/app.php

Usage using thecodingmachine/discovery

The bridge will use thecodingmachine/discovery to automatically discover the universal service providers of your project. If the service provider you are loading publishes itself on thecodingmachine/discovery, then you are done. The services declared in the service provider are available in the Laravel container!

Usage using manual declaration

If the service provider you are using does not publishes itself using thecodingmachine/discovery, you will have to declare it manually in the container-interop-service-providers key of your `config/app.php' file.

Set the service provider fully qualified class name in the parameter container-interop-service-providers:

config/app.php

Now, you can do : $app->make('glide')

Disabling discovery

You can disable discovery using the container-interop-service-provider-enable-discovery setting:

config/app.php

Purging the cache

The Laravel service provider in this package is a deferred provider.

Laravel compiles and stores a list of all of the services supplied by this provider. Then, only when you attempt to resolve one of these services does Laravel load the service provider.

If you add a new service to one of the universal service providers, you will need to purge the "compiled" services. You can do this with this command line:


All versions of laravel-universal-service-provider with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
laravel/framework Version ^5.0
container-interop/service-provider Version ~0.3.0
puli/cli Version ^1.0
puli/discovery Version ^1.0
puli/composer-plugin Version ^1.0
acclimate/container Version ^1.0
mnapoli/simplex Version ^0.2.1
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 thecodingmachine/laravel-universal-service-provider contains the following files

Loading the files please wait ....