PHP Package: php-di/invoker

PHP-DI Invoker is a powerful library for dependency injection and method invocation.

Current Version: 2.3.7
Last Updated: 2025-08-30
PHP Requirement: >=7.3
Dependencies:
php-di/php-di
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

PHP-DI Invoker is a PHP library that enables efficient dependency injection and method invocation. It simplifies the process of invoking methods with injected dependencies, making your code more modular and testable. With PHP-DI Invoker, you can easily manage your dependencies and improve the maintainability of your applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.3.7

Download Download v2.3.7

Previous Versions

Code Integration Example

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

<?php
// Example from PHPlibraries.com
require_once 'libs/php-di/invoker/2.3.7/loader.php';
require_once 'libs/php-di/php-di/7.1.1/loader.php';

use PhpDi\Invoker\Invoker;
use PhpDi\Invoker\ParameterResolver;

$obj = new Invoker();
echo '✅ Test OK: ' . get_class($obj);
?>

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

Community Discussion

Ask questions, share tips, or report issues below.