Download the PHP package adlogix/zf-symfony-container without Composer

On this page you can find all versions of the php package adlogix/zf-symfony-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 zf-symfony-container

Zend Framework - Symfony DI Container

Zend Framework module to leverage the symfony dependency injection container

Build Status

Installation

  1. Install the module via composer by running:

  2. Add the Adlogix\ZfSymfonyContainer module to the module section of your config/application.config.php

Configuration

Symfony Container parameters can be defined in the application configurations:

Usage

Refer to the documentation of the Symfony DI Component for information on how to use the DI container.

Obtain a symfony defined service

Any existing symfony service will directly be available through the Service Manager of Zend:

Build a symfony defined service with a Zend service dependency

It will happen that you have to use a dependency which is already loaded into the Zend Service Manager. For example, if you are using the Doctrine Module and you need to have the instance of the Entity Manager, you can leverage the ZendServiceProxyFactory class:

With this configuration, and service defined with the symfony container requiring an instance of Doctrine\ORM\EntityManagerInterface will receive this from the Zend Service Manager.

Obtain the symfony container instance

Use the Zend config as Symfony parameters

The module takes care of transforming all zend configurations into Symfony parameters allowing you to immediately use the parameters in the service definition file:

When the Zend configuration contains deep level keys, the "keys" will be concatenated with a dot.

Note: zend configurations using callables will be ignored and cannot be used!


All versions of zf-symfony-container with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
zendframework/zend-modulemanager Version ^2.8
zendframework/zend-servicemanager Version ^2.7
symfony/dependency-injection Version ^3.4
symfony/config Version ^3.4
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 adlogix/zf-symfony-container contains the following files

Loading the files please wait ...