PHPackages                             mike-zange/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. [Security](/categories/security)
4. /
5. mike-zange/encryptable

ActiveLibrary[Security](/categories/security)

mike-zange/encryptable
======================

Encryptable Trait for Laravel to make individual fields encrypted

0.2.0(7y ago)116MITPHPPHP &gt;=7.0

Since Aug 1Pushed 7y agoCompare

[ Source](https://github.com/MikeZange/laravel-encryptable)[ Packagist](https://packagist.org/packages/mike-zange/encryptable)[ RSS](/packages/mike-zange-encryptable/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

Description
-----------

[](#description)

Reusable trait for encrypting Laravel model fields.

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

[](#requirements)

- Any fields that are encryptable need to be changed to type "text" in the database, due to the encrypted data string being much longer than the original data.
- `PHP >=7.0`
- `Laravel ~5.6`

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

[](#installation)

1. As always: back up your database - I am not responsible for any data loss
2. Install the package via Composer:

    `composer require mike-zange/laravel-encryptable`
3. On your model add:

    ```
    use Encryptable;

    public $encryptable = [
        'field_1',
        'field_2',
        'field_3',
        'field_4'
    ];

    ```

The trait will take care of the rest

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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 ~21 days

Total

2

Last Release

2819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eae655149608f1a3bddf04b06ca77cd5f349867be24057b29fef109404a91018?d=identicon)[MikeZange](/maintainers/MikeZange)

---

Top Contributors

[![mikezange](https://avatars.githubusercontent.com/u/5443707?v=4)](https://github.com/mikezange "mikezange (2 commits)")

---

Tags

dataencryptfieldgdprlaravelmodeltraitlaravelmodelencryptfield

### Embed Badge

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

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

###  Alternatives

[sbamtr/laravel-source-encrypter

Laravel Source Encrypter

58545.6k](/packages/sbamtr-laravel-source-encrypter)[daanra/laravel-lets-encrypt

A Laravel package to easily generate SSL certificates using Let's Encrypt

22650.9k](/packages/daanra-laravel-lets-encrypt)

PHPackages © 2026

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