PHPackages                             taknone/attributes - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. taknone/attributes

ActiveLibrary[Queues &amp; Workers](/categories/queues)

taknone/attributes
==================

Attribute-based validation for PHP 8.3+

v1.1.0(8mo ago)24983MITPHPPHP &gt;=8.3

Since Sep 9Pushed 8mo agoCompare

[ Source](https://github.com/TakNone/Attributes)[ Packagist](https://packagist.org/packages/taknone/attributes)[ RSS](/packages/taknone-attributes/feed)WikiDiscussions main Synced 1mo ago

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

Attributes
==========

[](#attributes)

[![PHP Version](https://camo.githubusercontent.com/e2ea012a3d37610a0543f52932a4b335b545adb0a982fa83ce3fec66ad49779e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382532422d626c7565)](https://www.php.net/) [![License: MIT](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)

Attribute-based validation for PHP 8.3+ : validate method parameters, return values and property access using compact, reusable attributes

Validator — Declarative validation using PHP 8+ attributes
==========================================================

[](#validator--declarative-validation-using-php-8-attributes)

A lightweight, framework-agnostic library that lets you declare validation rules as PHP attributes. Validate method parameters, method return values, and property get/set using compact, reusable attribute classes (for example `#[Range]`, `#[Pattern]`, `#[Vector]`). Built-in caching of reflection metadata keeps runtime overhead low

---

📦 Installation
==============

[](#-installation)

Install via Composer :

```
composer require taknone/attributes
```

Then enable Composer autoload in your project :

```
require_once __DIR__.'/vendor/autoload.php';
```

---

🚀 Quickstart
============

[](#-quickstart)

The repository includes an [`examples`](examples) directory with runnable examples and small helper scripts

---

Contributing
============

[](#contributing)

PRs welcome ! Follow a few rules :

1. Run and add example for new validators
2. Keep attribute constructor arguments constant expressions ( required by PHP attributes )
3. Document behavior for corner cases ( nullability, casting, unique semantics )

---

License
=======

[](#license)

MIT — see [`LICENSE`](LICENSE)

---

Support / Contact
=================

[](#support--contact)

If you need help integrating `Attributes` into your project, open an issue or reach out via the repository's issue tracker

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance61

Regular maintenance activity

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

Every ~7 days

Total

2

Last Release

244d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47ff19d174c8b1e2b2cf8b5e310711ca80f8bd1dec692802e75b9c42bd438604?d=identicon)[TakNone](/maintainers/TakNone)

---

Top Contributors

[![TakNone](https://avatars.githubusercontent.com/u/215072918?v=4)](https://github.com/TakNone "TakNone (6 commits)")

---

Tags

attributeattributescheckerfiltermethodparameterphp83php84propertyreflectionphpasyncvalidationfilterattributechecker

### Embed Badge

![Health badge](/badges/taknone-attributes/health.svg)

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

###  Alternatives

[riki137/multitron

Tool for managing fast both asynchronous and multi-threaded execution of tasks. Focused on performance and pleasant CLI interface.

9016.8k](/packages/riki137-multitron)[badfarm/zanzara

Asynchronous PHP Telegram Bot Framework

2042.5k](/packages/badfarm-zanzara)

PHPackages © 2026

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