PHPackages                             chivo912/encryptable - 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. chivo912/encryptable

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

chivo912/encryptable
====================

A simple trait to make attributes encrypted in the database

v1.0.0(4y ago)03MITPHPPHP &gt;=7.2.0

Since Jul 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chivo912/laravel-encryptable-trait)[ Packagist](https://packagist.org/packages/chivo912/encryptable)[ RSS](/packages/chivo912-encryptable/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Encryptable, an ecryptable trait for Laravel
============================================

[](#encryptable-an-ecryptable-trait-for-laravel)

Encryptable is a trait for Laravel that adds simple encryptable functions to Eloquent Models.

Encryptable allows you to encrypt data as in enters the database and decrypts it on its retrieval.

Installation
============

[](#installation)

Simple add the package to your `composer.json` file and run `composer update`.

```
"chivo912/encryptable": "1.*",

```

Usage
=====

[](#usage)

Add the trait to your model and your encryptable rules.

```
use Chivo912\Encryptable\EncryptableTrait;

class User extends Authenticatable
{
	use EncryptableTrait;

	/**
	 * Encryptable Rules
	 *
	 * @var array
	 */
	protected $encryptable = [
		'name',
		'email',
	];

...
}
```

Now, whenever you interact with the model, the `name` and `email` will automatically be encrypted and decrypted between your frontend and the database.

Contributing
------------

[](#contributing)

Anyone is welcome to contribute. Fork, make your changes and then submit a pull request.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1755d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61b805eaebf4e6af8dae6f7c936e939731257a20de965ebc7404189f3bc1866a?d=identicon)[chivo912](/maintainers/chivo912)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/chivo912-encryptable/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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