v-dem/queasy-container

PSR-11 container implementation, part of QuEasy PHP framework

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/v-dem/queasy-container

v1.0.2 2025-09-14 10:32 UTC

This package is auto-updated.

Last update: 2025-10-14 10:39:26 UTC


README

Total Downloads Latest Stable Version License

QuEasy PHP Framework - Service Container

Package v-dem/queasy-container

Lightweight implementation of PSR-11 Container Interface

Requirements

  • PHP version 5.3 or higher

Installation

composer require v-dem/queasy-container

Usage

Initialization

Each item in array passed to ServiceContainer constructor should be callable which returns instance of of requested service.

$container = new queasy\container\ServiceContainer([
    'logger' => function($container) {
        return new queasy\log\Logger([
            'path' => __DIR__ . '/logs/debug.log'
        ]);
    }
]);

$container->logger->debug('Test');