PHPackages                             castor/container - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. castor/container

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

castor/container
================

A simple yet powerful Dependency Injection Container

1.2.1(3y ago)0311[1 issues](https://github.com/castor-labs/container/issues)MITPHPPHP &gt;=8.1

Since Jun 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/castor-labs/container)[ Packagist](https://packagist.org/packages/castor/container)[ RSS](/packages/castor-container/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Castor Container
================

[](#castor-container)

A simple yet powerful Dependency Injection Container

```
composer require castor/container

```

Basic Usage
-----------

[](#basic-usage)

You can simply boot an instance of the container and everything comes ready to use.

You can register services factories (that are simply closures that create services) using the `Castor\Container::register` method.

```
