https://github.com/jamseyp/container
A simple implmentation of a PSR-11 Container
https://github.com/jamseyp/container
container php php-fig php7 psr-11
Last synced: 29 days ago
JSON representation
A simple implmentation of a PSR-11 Container
- Host: GitHub
- URL: https://github.com/jamseyp/container
- Owner: jamseyp
- License: mit
- Created: 2018-07-23T19:36:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T13:45:49.000Z (over 7 years ago)
- Last Synced: 2025-08-14T00:18:44.622Z (6 months ago)
- Topics: container, php, php-fig, php7, psr-11
- Language: PHP
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://scrutinizer-ci.com/g/jamseyp/container/?branch=master)
[](https://scrutinizer-ci.com/g/jamseyp/container/?branch=master)
[](https://scrutinizer-ci.com/g/jamseyp/container/build-status/master)
[](https://scrutinizer-ci.com/code-intelligence)
Specter Container.
A simple implmentation of a PSR-11 Container.
Usage:
```php
$container = new Container();
$container->set('foo',new DateTime());
if($container->has('foo'){
$today = $container->get('foo')
}
```