antidot-fw / container
PSR-11 container implementation made for Antidot Framework
Fund package maintenance!
kpicaza
Installs: 2 224
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 5
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- psr/container: ^2.0
Requires (Dev)
- phpro/grumphp: ^1.0
- phpstan/phpstan: ^1.2
- phpunit/phpunit: ^9.0
- roave/infection-static-analysis-plugin: ^1.32
- squizlabs/php_codesniffer: ^3.4
- symfony/var-dumper: ^5.0
- vimeo/psalm: ^4.0.0
This package is auto-updated.
Last update: 2024-10-22 19:52:00 UTC
README
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
$ composer require antidot-fw/container:dev-master
Simple Usage
<?php declare(strict_types=1); use Antidot\Container\Builder; $container = Builder::build([ 'config' => [], 'parameters' => [], 'services' => [ 'some.service' => Some::class, ], ], true); if ($container->has('some.service')) { $service = $container->get('some.service'); }
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email kpicaza@example.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.