slick / di
Slick package for dependency injection container.
Installs: 5 673
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=8.2
- psr/container: ^1.0||^2.0
- slick/fswatch: ^0.1.0@dev
Requires (Dev)
- behat/behat: dev-master
- phpspec/phpspec: ^8.0@dev
- squizlabs/php_codesniffer: 4.0.x-dev
Provides
- psr/container-implementation: 1.0.0
This package is auto-updated.
Last update: 2024-11-15 22:09:04 UTC
README
slick/di
is an easy dependency injection container for PHP 8.0+.
It aims to be very lightweight and tries to remove a lot of the guessing and magic stuff that dependency containers use those days.
It also allows you to nest containers witch can become very useful if you have several packages that you reuse in your applications, allowing you to define containers with default dependencies in those packages for later override and usage them in your application.
This package is compliant with PSR-2 code standards and PSR-4 autoload standards. It also applies the semantic version 2.0.0 specification.
Install
Via Composer
$ composer require slick/di
Usage
Please read slick/orm
documentation at https://www.slick-framework.com/documentation/dependency-injection.html
Testing
We use Behat to describe features and for acceptance tests and PHPSpec for unit testing.
# unit tests $ vendor/bin/phpspec # acceptance tests $ vendor/bin/behat
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email slick.framework@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.