Skip to content

[DEPRECATED] Kraken\Container component, standalone part of kraken-php/framework.

Notifications You must be signed in to change notification settings

kraken-php/container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Kraken Container Component

Build Status Total Downloads Latest Stable Version Latest Unstable Version License Kraken Compatible

Note: This repository is a part of Kraken Framework, but can be used freely as standalone library. If you are interested in more asynchronous components for PHP, check out the rest of Kraken repository or see our asynchronous application skeleton example.

Description

Container is both powerful dependency injection container and service container.

Feature Highlights

Container features:

  • Support for binding objects, classes, params and factory methods to container,
  • Support for modifying container and removal of its definitions on fly,
  • Autoresolve for not defined classes or services,
  • Autowiring for simple and nested dependencies,
  • Service providers with configurable requirements and providees,
  • Service registers,
  • Sorting algorithm to ensure right execution order of providers, based on their dependencies,
  • Kraken Framework compatibility,
  • ...and more.

Examples

See more examples in official documentation.

Requirements

  • PHP-5.6 or PHP-7.0+,
  • UNIX or Windows OS.

Installation

composer require kraken-php/container

Tests

Tests are provided within our write-only Framework repository.

Documentation

Documentation for this module can be found in the official documentation.

Contributing

This library is read-only subtree split of Kraken Framework. To make contributions, please go to Framework repository.

License

This library licensed under the MIT license, see more information in Kraken Framework license section.

About

[DEPRECATED] Kraken\Container component, standalone part of kraken-php/framework.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages