PHPackages                             kenny1911/doctrine-inherit-annotations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kenny1911/doctrine-inherit-annotations

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kenny1911/doctrine-inherit-annotations
======================================

Support inherit doctrine annotations of parent class

v1.0.0(5y ago)02.1kMITPHPPHP ^7.1 || ^8.0

Since Feb 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Kenny1911/doctrine-inherit-annotations)[ Packagist](https://packagist.org/packages/kenny1911/doctrine-inherit-annotations)[ RSS](/packages/kenny1911-doctrine-inherit-annotations/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

InheritAnnotationReader
=======================

[](#inheritannotationreader)

`InheritAnnotationReader` - is implementation of `Reader` interface from `doctrine/annotations` package, that support inherit annotations from parent class. To do this, you must specify `@Kenny1911\DoctrineInheritAnnotations\Annotation\Inherit` annotation, like as `@inheritDoc` from `PHPDoc`.

New InheritAnnotationReader instance
------------------------------------

[](#new-inheritannotationreader-instance)

`InheritAnnotationReader` instance is decorate original `Reader`:

```
use Doctrine\Common\Annotations\AnnotationReader;
use Kenny1911\DoctrineInheritAnnotations\InheritAnnotationReader;

$reader = new AnnotationReader(); // Original annotation reader

$inheritReader = new InheritAnnotationReader($reader);
```

Usage
-----

[](#usage)

```
use Doctrine\Common\Annotations\AnnotationReader;
use Kenny1911\DoctrineInheritAnnotations\Annotation\Inherit;
use Kenny1911\DoctrineInheritAnnotations\InheritAnnotationReader;

/**
 * @FooAnnotation()
 */
class ParentClass {}

/**
 * @BarAnnotation()
 *
 * @Inherit()
 */
class ChildClass extends ParentClass {}

$reader = new AnnotationReader();
$reader->getClassAnnotations(new ReflectionClass(ChildClass::class)); // return [@BarAnnotation(), @Inherit()]

$inheritReader = new InheritAnnotationReader($reader);
$inheritReader->getClassAnnotations(new ReflectionClass(ChildClass::class)); // return [@BarAnnotation(), @Inherit(), @FooAnnotation()]
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1955d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c929378f19c1e2e6a9525debcf490ec49c991a3d1ac6133e3c9fa45cef184102?d=identicon)[Kenny1911](/maintainers/Kenny1911)

---

Top Contributors

[![Kenny1911](https://avatars.githubusercontent.com/u/25887351?v=4)](https://github.com/Kenny1911 "Kenny1911 (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kenny1911-doctrine-inherit-annotations/health.svg)

```
[![Health](https://phpackages.com/badges/kenny1911-doctrine-inherit-annotations/health.svg)](https://phpackages.com/packages/kenny1911-doctrine-inherit-annotations)
```

###  Alternatives

[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k624.1k86](/packages/akeneo-pim-community-dev)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16160.8k9](/packages/hostnet-entity-tracker-component)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[oat-sa/generis

TAO generis library

10148.8k124](/packages/oat-sa-generis)[hostnet/accessor-generator-plugin-lib

Generate get, set, add, remove methods on the fly.

10121.4k](/packages/hostnet-accessor-generator-plugin-lib)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
