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

Abandoned → [panlatent/craft-attribute](/?search=panlatent%2Fcraft-attribute)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

panlatent/craft-annotations
===========================

071PHP

Since Mar 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/panlatent/craft-annotations)[ Packagist](https://packagist.org/packages/panlatent/craft-annotations)[ RSS](/packages/panlatent-craft-annotations/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Craft Annotations
=================

[](#craft-annotations)

Craft Annotations aims to use PHP annotation features to bring a new development experience to CraftCMS and Yii Framework.

⚠️ This project has been transferred to another repository [Craft Attribute](https://github.com/panlatent/craft-attribute).

> Notice: This library is experimental and there will undoubtedly be some performance impact (but probably minimal) from using it, as parsing annotations requires leveraging the reflection API.

Craft Annotations are not intrusive. It uses inheritance to implement functionality. Use it on demand or as a middle layer between your application and Craft/Yii.

Features
--------

[](#features)

- Controller Access Control

Requirements
------------

[](#requirements)

- PHP 8.0.2 or later.

Installation
------------

[](#installation)

Then tell Composer to load the library

```
composer require panlatent/craft-annotations
```

Usages
------

[](#usages)

Documentation
-------------

[](#documentation)

AttributeTargetsScopesSupports\#\[AllowAnonymous\]ControllerClass[![Craft](https://camo.githubusercontent.com/36427a0bae561ae230eb3fa9c06302b97aa619cff0e4e8a24a0be192a81b3521/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43726166742d6f72616e67652e7376673f7374796c653d666c6174)](https://craftcms.com/) [![Yii](https://camo.githubusercontent.com/bea1f8b474aff6b1b8c3ef3aa14c9c18ebbc793d5f9bea789e2a2cd845734bdf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5969692d677265656e2e7376673f7374796c653d666c6174)](https://www.yiiframework.com/)\#\[RequireLogin\]ControllerActionMethod[![Craft](https://camo.githubusercontent.com/36427a0bae561ae230eb3fa9c06302b97aa619cff0e4e8a24a0be192a81b3521/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43726166742d6f72616e67652e7376673f7374796c653d666c6174)](https://craftcms.com/)\#\[RequirePostRequest\]ControllerActionMethod[![Craft](https://camo.githubusercontent.com/36427a0bae561ae230eb3fa9c06302b97aa619cff0e4e8a24a0be192a81b3521/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43726166742d6f72616e67652e7376673f7374796c653d666c6174)](https://craftcms.com/)\#\[RequireAcceptsJson\]ControllerActionMethod[![Craft](https://camo.githubusercontent.com/36427a0bae561ae230eb3fa9c06302b97aa619cff0e4e8a24a0be192a81b3521/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43726166742d6f72616e67652e7376673f7374796c653d666c6174)](https://craftcms.com/)License
-------

[](#license)

The Element Messages is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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/c79a4220751bab4ff8ee0953a41c4664fddb12e2a47e69442c2e5315b5c7ef9a?d=identicon)[panlatent](/maintainers/panlatent)

---

Top Contributors

[![panlatent](https://avatars.githubusercontent.com/u/4393268?v=4)](https://github.com/panlatent "panlatent (10 commits)")

### Embed Badge

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

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

PHPackages © 2026

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