PHPackages                             attla/encoded-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. [Database &amp; ORM](/categories/database)
4. /
5. attla/encoded-attributes

ActiveLibrary[Database &amp; ORM](/categories/database)

attla/encoded-attributes
========================

A powerful layer to encode eloquent attributes.

1238PHP

Since Aug 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/attla/encoded-attributes)[ Packagist](https://packagist.org/packages/attla/encoded-attributes)[ RSS](/packages/attla-encoded-attributes/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Encoded Attributes for eloquent
===============================

[](#encoded-attributes-for-eloquent)

[![License](https://camo.githubusercontent.com/891419a00e04aa0e311068fa8a04eec92cab4f7026c76278279bf2a1da50e578/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)](LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/bceca12ea7b8cf369fff5440d28b911d84b5a6a200fde962cd043c125b2a3057/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6174746c612f656e636f6465642d61747472696275746573)](https://packagist.org/packages/attla/encoded-attributes)[![Total Downloads](https://camo.githubusercontent.com/0493bf4e451114c9b66af3c834f94a4092e7645a9d9f73310cb35cc3432dd80b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6174746c612f656e636f6465642d61747472696275746573)](https://packagist.org/packages/attla/encoded-attributes)

🔣 A powerful layer to encode eloquent attributes.

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

[](#installation)

```
composer require attla/encoded-attributes
```

Usage
-----

[](#usage)

Add the `Attla\EncodedAttributes\HasEncodedAttributes` trait to your model.

To automatically turn some attribute into an encoded attribute, add a `Encoded` or `_encoded` suffix.

```
// getting existed attribute
$model->email

// turning an attribute into an encoded attribute
$model->emailEncoded
// or
$model->email_encoded
```

If you need validate a encoded attribute with rules: `exists`, `unique` use the suffix `_encoded`.

License
-------

[](#license)

This package is licensed under the [MIT license](LICENSE) © [Octha](https://octha.com).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

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://avatars.githubusercontent.com/u/682727?v=4)[Andre Goncalves](/maintainers/nicolau)[@nicolau](https://github.com/nicolau)

---

Top Contributors

[![nicxlau](https://avatars.githubusercontent.com/u/17990891?v=4)](https://github.com/nicxlau "nicxlau (14 commits)")

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

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