Overview

dot-annotated-services is Dotkernel's dependency injection service using annotations.

By providing reusable factories for service and repository injection, it reduces code complexity in projects.

Version 6.0 continues the annotation-based API of version 4.x. Version 5.x is a separate package line that uses PHP attributes instead of annotations. See the upgrade guide if you are coming from 4.x or 5.x.

Requirements

  • PHP 8.3, 8.4, 8.5 or 8.6
  • PSR-11 version 1 or 2
  • doctrine/annotations ^2.0
  • doctrine/orm ^3.0

Version History

Branch PSR-11 Docblock Comments OSS Lifecycle PHP Version
6.0 1 || 2 Annotations OSS Lifecycle PHP from Packagist (specify version)
5.0 1 || 2 Attributes OSS Lifecycle PHP from Packagist (specify version)
4.0 1 Annotations OSS Lifecycle PHP from Packagist (specify version)
3.0 1 Annotations OSS Lifecycle PHP from Packagist (specify version)

Versions 4.x and 6.0 are the proper releases of this package. They are annotation-based.

Version 5.x is discontinued. It used PHP attributes, which are now provided by a separate package: dot-dependency-injection (documentation). Use it if you want attributes instead of annotations. See Version 5 is discontinued for migration notes.

Badges

OSS Lifecycle PHP from Packagist (specify version)

GitHub issues GitHub forks GitHub stars GitHub license

Build Static codecov PHPStan