Download the PHP package lionsad/service_container without Composer

On this page you can find all versions of the php package lionsad/service_container. 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 service_container

service_container

Build Status Coverage Status Scrutinizer Code Quality ![Gitter](https://badges.gitter.im/Join Chat.svg)

Versions

Latest Stable Version Total Downloads Latest Unstable Version License

Service Container is an API module based on ctools to enable a Drupal 7 quick and easy lightweight service container with 100% unit test coverage.

It is very similar in syntax to a Symfony container, but was written from scratch as a symfony dependency was not wanted - using some of Drupal 8 Core and Component directly. They will likely depend on a drupal8core project in the future - but for now the copy is fine.

This allows to use an extensible service container (like in Drupal 8) and write modules in Drupal 7 as if they were using Drupal 8.

The main benefit is being able to use unit testing but also to write Drupal 7 module with Drupal 8 style of coding in mind.

The module uses PHP Unit and travis.yml, but the tests and a composer.json are isolated in the tests/ directory, so no vendor or composer multi map is needed by default.

It was originally written for the render_cache module, but since then others have expressed interest in using it, so it was split it out and made a dependency of render_cache instead.

You need:

or any other PSR-4 autoloader.

Registering CTools plugins

By default the service_container supports CTools discovery, to register your plugins all you need to do is:

``

And you can then get a plugin via:

``

Because the plugin managers implement the whole discovery interface, you can get all definitions with ease.

``

Your plugin itself looks like:

cat modules/render_cache_block/src/RenderCache/Controller/block.inc

``

So you can use normal container parameter syntax.

Provides the following services:

Testing

List of Drupal 8 core services that we've altered

See the file HACK.md for more details.

Examples of modules that use this module


All versions of service_container with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.10
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 lionsad/service_container contains the following files

Loading the files please wait ....