league/container

A fast and intuitive dependency injection container.

Maintainers

👁 philipobenito

Package info

github.com/thephpleague/container

pkg:composer/league/container

Fund package maintenance!

philipobenito

Statistics

Installs: 93 577 680

Dependents: 381

Suggesters: 8

Stars: 867

Open Issues: 5

5.2.0 2026-03-19 18:52 UTC

Requires

Suggests

None

Conflicts

None

Replaces

MIT 58accbc032f0090a9bd08326f93062c5a658b2c5

  • Phil Bennett <mail.woop@philbennett.co.uk>

containerdependencydiinjectionserviceproviderleague


README

👁 Author
👁 Latest Version
👁 Software License
👁 GitHub Actions Workflow Status
👁 Total Downloads

This package is compliant with PER-CS, PSR-4 and PSR-11. If you notice compliance oversights, please send a patch via pull request.

Install

Via Composer

composer require league/container

Requirements

This version supports the following versions of PHP.

  • PHP 8.3
  • PHP 8.4
  • PHP 8.5

Documentation

Container has full documentation, powered by Jekyll.

Contribute to this documentation in the docs/ subdirectory.

Testing

Testing includes Pest and PHPStan (Level 8).

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email philipobenito@gmail.com instead of using the issue tracker.

Credits

License

The MIT Licence (MIT). Please see Licence File for more information.