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

ActiveLibrary

panlatent/craft-attribute
=========================

Attribute for CraftCMS

0181PHP

Since Mar 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/panlatent/craft-attribute)[ Packagist](https://packagist.org/packages/panlatent/craft-attribute)[ RSS](/packages/panlatent-craft-attribute/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Craft Attribute
===============

[](#craft-attribute)

Using PHP Attribute in CraftCMS.

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

[](#installation)

Then tell Composer to load the library:

```
composer require panlatent/craft-attribute
```

Usages
------

[](#usages)

### Controllers

[](#controllers)

For Web Controllers, you can inherit `panlatent\craft\attribute\web\Controller` or use Trait `panlatent\craft\attribute\web\HasAttributes` to use these attributes:

AttributeTargetsScopes\#\[AllowAnonymous\]ControllerClass\#\[RequireLogin\]ControllerActionMethod\#\[RequirePostRequest\]ControllerActionMethod\#\[RequireAcceptsJson\]ControllerActionMethod### Elements

[](#elements)

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

[](#documentation)

License
-------

[](#license)

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity15

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 (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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