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 3d 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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

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

1904d 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

[friendsofsymfony/comment-bundle

This Bundle provides threaded comment functionality for Symfony applications

460751.2k5](/packages/friendsofsymfony-comment-bundle)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[koriym/attributes

An annotation/attribute reader

433.4M12](/packages/koriym-attributes)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16158.1k4](/packages/hostnet-entity-tracker-component)[gomachan46/state-machine

simple state machine with annotations for PHP, inspired by AASM known as a Ruby state machine.

1893.9k](/packages/gomachan46-state-machine)[hostnet/accessor-generator-plugin-lib

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

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

PHPackages © 2026

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