NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3683 most downloaded on Packagist
Provides an extensible Dependency Injection Service Container for Automated Object Composition, Interception, and Lifetime Management.
Latest stable
7.1.0
Last release 1 months ago
01 Oct 2026
Release timing varies
gaps range from 8 days to 8 months
Nearly every release is documented
notes for 43 of 43 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
43 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Full Changelog: https://github.com/ghostwriter/container/compare/7.0.3...7.1.0
Full Changelog: https://github.com/ghostwriter/container/compare/7.0.3...7.1.0
Full Changelog: https://github.com/ghostwriter/container/compare/7.0.2...7.0.3
Full Changelog: https://github.com/ghostwriter/container/compare/7.0.2...7.0.3
Full Changelog: https://github.com/ghostwriter/container/compare/7.0.1...7.0.2
Full Changelog: https://github.com/ghostwriter/container/compare/7.0.1...7.0.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/ghostwriter/container/compare/7.0.0...7.0.1
Full Changelog: https://github.com/ghostwriter/container/compare/7.0.0...7.0.1
Deprecated APIs: Removed the define() method from Container and all definition-based registration logic.
DefinitionInterface and all related Composer extra definition classes.define() method from Container and all definition-based registration logic.ComposerDefinitionProviderInterface to ComposerServiceProviderInterface.ComposerDefinitionProvider to ComposerServiceProvider.missingComposerFiles helper for improved Composer integration.Full Changelog: https://github.com/ghostwriter/container/compare/6.1.1...7.0.0
Full Changelog: https://github.com/ghostwriter/container/compare/6.1.0...6.1.1
Full Changelog: https://github.com/ghostwriter/container/compare/6.1.0...6.1.1
Full Changelog: https://github.com/ghostwriter/container/compare/6.0.1...6.1.0
Full Changelog: https://github.com/ghostwriter/container/compare/6.0.1...6.1.0
Full Changelog: https://github.com/ghostwriter/container/compare/6.0.0...6.0.1
Full Changelog: https://github.com/ghostwriter/container/compare/6.0.0...6.0.1
Removed attribute-based service registration in favor of automatic service definition registration via Composer's extra config.
Removed attribute-based service registration in favor of automatic service definition registration via Composer's extra config.
Full Changelog: https://github.com/ghostwriter/container/compare/5.0.1...6.0.0
Full Changelog: https://github.com/ghostwriter/container/compare/5.0.0...5.0.1
Full Changelog: https://github.com/ghostwriter/container/compare/5.0.0...5.0.1
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.5...5.0.0
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.5...5.0.0
clear() was added to interface Ghostwriter\Container\Interface\ContainerInterfacedefine() was added to interface Ghostwriter\Container\Interface\ContainerInterface$value of Ghostwriter\Container\Container#set() changed from callable|object to object$value of Ghostwriter\Container\Interface\ContainerInterface#set() changed from callable|object to objectGhostwriter\Container\Exception\ReflectionException has been deletedGhostwriter\Container\Container#purge() was removedGhostwriter\Container\Container#register() was removedGhostwriter\Container\Interface\ContainerInterface#purge() was removedGhostwriter\Container\Interface\ContainerInterface#register() was removedFull Changelog: https://github.com/ghostwriter/container/compare/4.0.4...4.0.5
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.4...4.0.5
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.3...4.0.4
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.3...4.0.4
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.2...4.0.3
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.2...4.0.3
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.1...4.0.2
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.1...4.0.2
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.0...4.0.1
Full Changelog: https://github.com/ghostwriter/container/compare/4.0.0...4.0.1
Registering a service on the container using Inject attribute.
Inject attribute.Factory attribute.Extension attribute.Full Changelog: https://github.com/ghostwriter/container/compare/3.0.3...4.0.0
Ghostwriter\Container\Attribute\Extension addedGhostwriter\Container\Attribute\Factory addedGhostwriter\Container\Attribute\Inject addedGhostwriter\Container\List\Aliases addedGhostwriter\Container\List\Bindings addedGhostwriter\Container\List\Builders addedGhostwriter\Container\List\Dependencies addedGhostwriter\Container\List\Extensions addedGhostwriter\Container\List\Factories addedGhostwriter\Container\List\Instances addedGhostwriter\Container\List\Providers addedGhostwriter\Container\List\Tags addedpurge() added to Ghostwriter\Container\Interface\ContainerInterface interfaceGhostwriter\Container\Container#__clone() methodGhostwriter\Container\Interface\ContainerInterface#alias() from name to serviceGhostwriter\Container\Interface\ContainerInterface#alias() from service to aliasGhostwriter\Container\Interface\ContainerInterface#bind() from abstract to serviceGhostwriter\Container\Interface\ContainerInterface#factory() from serviceFactory to factoryGhostwriter\Container\Instantiator deletedGhostwriter\Container\ParameterBuilder deletedGhostwriter\Container\Reflector deletedGhostwriter\Container\Exception\ReflectorException deletedGhostwriter\Container\Exception\ServiceExtensionAlreadyRegisteredException deletedFull Changelog: https://github.com/ghostwriter/container/compare/3.0.2...3.0.3
Full Changelog: https://github.com/ghostwriter/container/compare/3.0.2...3.0.3
Extensions will be called if the $serviceName matches the $className or is an instance of $serviceName
Extensions will be called if the $serviceName matches the $className or is an instance of $serviceName
Full Changelog: https://github.com/ghostwriter/container/compare/3.0.1...3.0.2
Returns $this when requested for an instance of Ghostwriter\Container\Interface\ContainerInterface
Returns $this when requested for an instance of Ghostwriter\Container\Interface\ContainerInterface
Full Changelog: https://github.com/ghostwriter/container/compare/3.0.0...3.0.1
Method invoke() was added to interface Ghostwriter\Container\Interface\ContainerInterface
invoke() was added to interface Ghostwriter\Container\Interface\ContainerInterfaceGhostwriter\Container\Instantiator#__construct() increased from 0 to 2$reflector of Ghostwriter\Container\Instantiator#construct() was added$parameterBuilder of Ghostwriter\Container\Instantiator#construct() was added$container of Ghostwriter\Container\ParameterBuilder#construct() was addedParameterBuilder resolves positional argumentsGhostwriter\Container\Instantiator#buildParameters() was removed$container of Ghostwriter\Container\Instantiator#instantiate() was removed$container of Ghostwriter\Container\ParameterBuilder#build() was removedFull Changelog: https://github.com/ghostwriter/container/compare/2.0.1...3.0.0
Add factory to register a `service factory`
factory to register a service factoryBuild resolves aliasesParameterBuilder resolves default/nullable values from the containerExtend supports service name and service typeFull Changelog: https://github.com/ghostwriter/container/compare/2.0.0...2.0.1
factory to register a service factoryBuild resolves aliasesParameterBuilder resolves default/nullable values from the containerExtend supports service name and service typeV2 by @ghostwriter in https://github.com/ghostwriter/container/pull/30
Full Changelog: https://github.com/ghostwriter/container/compare/1.6.0...2.0.0
bind method name to registerregister method name to provideprovide method name to bindcall method parameter type to callableextend method 2nd parameter type to string (MUST be a class-string that implements ExtensionInterface)invoke method parameter type to string (MUST be callable-string, class with __invoke method or string function names trim)set method 2nd parameter type to callable|object. (The callable MUST return an object)Migrate PHPUnit 10.1 configuration by @ghostwriter in https://github.com/ghostwriter/container/pull/23
codecov by @ghostwriter in https://github.com/ghostwriter/container/pull/22Full Changelog: https://github.com/ghostwriter/container/compare/1.5.0...1.6.0
Refactor Reflector by @ghostwriter in https://github.com/ghostwriter/container/pull/19
Reflector by @ghostwriter in https://github.com/ghostwriter/container/pull/19Container by @ghostwriter in https://github.com/ghostwriter/container/pull/20Full Changelog: https://github.com/ghostwriter/container/compare/1.4.0...1.5.0
Update dependencies and refactor by @ghostwriter
Full Changelog: https://github.com/ghostwriter/container/compare/1.3.0...1.4.0
Lock file maintenance by @ghostwriter in https://github.com/ghostwriter/container/pull/14
invoke method by @ghostwriter in https://github.com/ghostwriter/container/pull/16Full Changelog: https://github.com/ghostwriter/container/compare/1.2.0...1.3.0
Full Changelog: https://github.com/ghostwriter/container/compare/1.1.1...1.2.0
Full Changelog: https://github.com/ghostwriter/container/compare/1.1.1...1.2.0
Full Changelog: https://github.com/ghostwriter/container/compare/1.1.0...1.1.1
Full Changelog: https://github.com/ghostwriter/container/compare/1.1.0...1.1.1
Full Changelog: https://github.com/ghostwriter/container/compare/1.0.0...1.1.0
Full Changelog: https://github.com/ghostwriter/container/compare/1.0.0...1.1.0
Full Changelog: https://github.com/ghostwriter/container/compare/0.7.0...1.0.0
Full Changelog: https://github.com/ghostwriter/container/compare/0.7.0...1.0.0
Provides a PSR 11 Container Implementation
Provides a PSR 11 Container Implementation
Full Changelog: https://github.com/ghostwriter/container/compare/0.6.0...0.7.0
Refactor register method by @ghostwriter in https://github.com/ghostwriter/container/pull/12
register method by @ghostwriter in https://github.com/ghostwriter/container/pull/12Full Changelog: https://github.com/ghostwriter/container/compare/0.5.0...0.6.0
Use phpunit.xsd schema in vendor directory by @ghostwriter in https://github.com/ghostwriter/container/pull/8
phpunit.xsd schema in vendor directory by @ghostwriter in https://github.com/ghostwriter/container/pull/8Full Changelog: https://github.com/ghostwriter/container/compare/0.4.0...0.5.0
Feature: Bind a service with tags by @ghostwriter in https://github.com/ghostwriter/container/pull/7
Full Changelog: https://github.com/ghostwriter/container/compare/0.3.2...0.4.0
QA: Code refactoring by @ghostwriter in https://github.com/ghostwriter/container/pull/6
Full Changelog: https://github.com/ghostwriter/container/compare/0.3.1...0.3.2
QA: code cleanup by @ghostwriter in https://github.com/ghostwriter/container/pull/5
Full Changelog: https://github.com/ghostwriter/container/compare/0.3.0...0.3.1
QA: Optimize and cleanup by @ghostwriter in https://github.com/ghostwriter/container/pull/3
invoke method and property accessors by @ghostwriter in https://github.com/ghostwriter/container/pull/4Full Changelog: https://github.com/ghostwriter/container/compare/0.2.1...0.3.0
QA: Optimize and cleanup by @ghostwriter in https://github.com/ghostwriter/container/pull/3
Full Changelog: https://github.com/ghostwriter/container/compare/0.2.1...0.2.2
Update .gitattributes and ci workflow
Update .gitattributes and ci workflow
Full Changelog: https://github.com/ghostwriter/container/compare/0.2.0...0.2.1
QA - Refactoring and code cleanup by @ghostwriter in https://github.com/ghostwriter/container/pull/2
Full Changelog: https://github.com/ghostwriter/container/compare/0.1.1...0.2.0
Fix composer issue Full Changelog: https://github.com/ghostwriter/container/compare/0.1.0...0.1.1
Fix composer issue
Full Changelog: https://github.com/ghostwriter/container/compare/0.1.0...0.1.1
Initial release by @ghostwriter in https://github.com/ghostwriter/container/pull/1
Full Changelog: https://github.com/ghostwriter/container/commits/0.1.0
One column per quarter.