sy/container

Dependency injection container

Maintainers

Package info

github.com/syframework/container

pkg:composer/sy/container

Statistics

Installs: 1 421

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2020-12-08 02:59 UTC

This package is auto-updated.

Last update: 2026-03-08 14:24:15 UTC


README

Dependency injection container

Installation

Install the latest version with

$ composer require sy/container

Basic Usage

<?php

use Sy\Container;

$container = new Container();

// Set an entry
$container->foo = function() {
	return 'hello';
};

// Get an entry
$var = $container->foo;

// Check an entry
if (isset($container->foo))