Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 1, 2024 via composer

php-di/php-di 7.0.6

The dependency injection container for humans
Package summary
Share
0
issues
1
license
4
MIT
Package created
7 Jun 2015
Version published
2 Nov 2023
Maintainers
1
Total deps
4
Direct deps
3
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
laravel/serializable-closure@v1.3.3
php-di/invoker@2.3.4
php-di/php-di@7.0.6
psr/container@2.0.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of php-di/php-di 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
laravel/serializable-closurev1.3.319.64 kBMIT
prod
php-di/invoker2.3.416.15 kBMIT
prod
psr/container2.0.23.55 kBMIT
prod

Visualizations

Frequently Asked Questions

What does php-di/php-di do?

PHP-DI is a versatile dependency injection container designed to offer practical and powerful solutions while remaining framework-agnostic. Primarily, this robust software tool focuses on managing dependencies, which are crucial components in major PHP applications. This results in a more organized and structured coding environment, enhancing the capacity to maintain and develop PHP applications.

How do you use php-di/php-di?

To deploy php-di/php-di in your PHP project, you must first install the package via composer. Since the exact usage may vary depending on your specific requirements, the general process involves defining dependencies and applying them to the classes you wish to manage. Here is a simple usage example:

$container = new \DI\Container();
$class = $container->get('Namespace\Name\Of\Your\Class');

In this instance, the container will automatically create the instance and handle all dependencies for 'Namespace\Name\Of\Your\Class'

Where are the php-di/php-di docs?

You can access the full documentation and additional resources pertaining to php-di/php-di on their official website, php-di.org. The documentation provides a comprehensive guide on how to effectively utilize php-di/php-di, covering important topics such as the dependency injection principles, container configuration, and practical examples to get you started.