PHPackages                             phore/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. phore/annotations

ActiveLibrary

phore/annotations
=================

Phore Annotations Abstraction

0630PHP

Since Dec 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/phore/phore-annotations)[ Packagist](https://packagist.org/packages/phore/annotations)[ RSS](/packages/phore-annotations/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

phore-annotations
=================

[](#phore-annotations)

Wrapper for Doctrine Annotaions

Create a AnnotationPack
-----------------------

[](#create-a-annotationpack)

```
class AnnotationPack_Application implements GoAnnotationPack {

        /**
         * Return a Array of Annotation Classnames to be loaded
         *
         * @return string[]
         */
        public function getAnnotationClassNames() {
            return [
                Action::class,
                AllowAll::class,
                Api::class,
                Filter::class,
                Mount::class,
                Parameter::class,
                Requires::class,
                Route::class,
                ContextInit::class
            ];
        }
    }

```

Register the Pack
-----------------

[](#register-the-pack)

```
Annotations::Register(AnnotationPack_Application::class);

```

Access the Annotations
----------------------

[](#access-the-annotations)

```
Annotations::ForClass(SomeClass::class);
Annotations::ForMethod(SomeClass::class, "methodName");
Annotations::ForProperty(SomeClass::class, "propertyName");

```

The Annotations returned are Doctrine Annotations \[\]

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/878a384d056698a2400e4b7c8858db05a6caebb2c560e67151be36d46d58def0?d=identicon)[dermatthes](/maintainers/dermatthes)

---

Top Contributors

[![dermatthes](https://avatars.githubusercontent.com/u/13380559?v=4)](https://github.com/dermatthes "dermatthes (1 commits)")

### Embed Badge

![Health badge](/badges/phore-annotations/health.svg)

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

PHPackages © 2026

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