Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antidot-framework/container
PSR-11 compatible autowired container made for Antidot Framework
https://github.com/antidot-framework/container
hacktoberfest php74 psr-11
Last synced: 3 months ago
JSON representation
PSR-11 compatible autowired container made for Antidot Framework
- Host: GitHub
- URL: https://github.com/antidot-framework/container
- Owner: antidot-framework
- License: mit
- Created: 2019-09-15T22:25:58.000Z (over 5 years ago)
- Default Branch: 3.x.x
- Last Pushed: 2024-05-22T18:53:36.000Z (8 months ago)
- Last Synced: 2024-09-29T20:01:30.134Z (3 months ago)
- Topics: hacktoberfest, php74, psr-11
- Language: PHP
- Homepage: https://di.antidotfw.io
- Size: 67.4 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Antidot Framework DI Container
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]Dependency injection library built for Antidot Framework respecting PSR-11 standard
Can be used together with Antidot Framework or as a standalone piece for your application or customized framework
## Install
Via Composer
```bash
$ composer require antidot-fw/container:dev-master
```## Simple Usage
```php
[],
'parameters' => [],
'services' => [
'some.service' => Some::class,
],
], true);
if ($container->has('some.service')) {
$service = $container->get('some.service');
}
```## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
``` bash
$ composer test
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Koldo Picaza][link-author]
- [All Contributors][link-contributors]## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/antidot-fw/container.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/scrutinizer/build/g/antidot-framework/container.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/antidot-framework/container.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/antidot-framework/container.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/antidot-fw/container.svg?style=flat-square[link-packagist]: https://packagist.org/packages/antidot-fw/container
[link-travis]: https://scrutinizer-ci.com/g/antidot-framework/container/
[link-scrutinizer]: https://scrutinizer-ci.com/g/antidot-framework/container/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/antidot-framework/container/badges/coverage.png?b=master
[link-downloads]: https://packagist.org/packages/antidot-fw/container
[link-author]: https://github.com/kpicaza
[link-contributors]: ../../contributors