Download the PHP
package draw/dependency-injection without Composer
On this page you can find all versions of the php package
draw/dependency-injection. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
Informations about the package dependency-injection
Dependency Injection
This package provides addons to the Symfony Dependency Injection component.
Installation
Integration
The Draw\Component\DependencyInjection\Integration namespace contains classes that can be used to easily integrate
subcomponents into a main bundle.
An example of this is all the draw components that are integrated into the DrawFrameworkExtraBundle.
When creating the main bundle extension you can use the IntegrationTrait to easily integrate all the subcomponents.
registerDefaultIntegrations
The registerDefaultIntegrations method will automatically register all the integrations that are in the provideExtensionClasses method.
It will check if the class exists and if it does it will create a new instance of it and add it to the integrations property.
That way you can define the integration classes in the specific component, and it will automatically be integrated into the main bundle
if your component is installed.
loadIntegrations
The loadIntegrations method will call the load method on all the integrations that are registered.
It will automatically pass the configuration to the existing configuration only if they are enabled.
prependIntegrations
The prependIntegrations method will call the prepend method on all the integrations that are registered.
It will check if the configuration is enabled and if it is it will call the prepend method.
Configuration
Here is an example of configuration base on the example above.
This example will enable the MyComponentIntegration and disable the MyOtherComponentIntegration.
All versions of dependency-injection with dependencies
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 draw/dependency-injection contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.