PHP Package: laminas/laminas-di

Laminas Dependency Injection component provides powerful and flexible dependency injection container functionality for PHP applications.

Current Version: 3.15.0
Last Updated: 2025-02-25
PHP Requirement: >=7.1
Dependencies: psr/log
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laminas Dependency Injection (Laminas-DI) is a robust PHP library that offers a feature-rich dependency injection container for effortlessly managing object dependencies in your projects. With Laminas-DI, you can easily configure and inject dependencies, promoting modularity and maintainability in your codebase. Utilize this library to streamline your application's architecture and enhance code reusability.

🔗 View on GitHub

Download Latest Version: 3.15.0

Download Download v3.15.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/laminas/laminas-di/3.15.0/autoload.php';

use Laminas\Di\Di;
use Laminas\Di\DiInterface;
use Laminas\Di\ServiceLocator;
use Laminas\Di\ServiceLocatorInterface;
use Psr\Log\LoggerInterface;


$obj = new Laminas\Di\Di();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.