PHPackages                             williamrox45/encrypt-model - 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. williamrox45/encrypt-model

ActiveLibrary[Security](/categories/security)

williamrox45/encrypt-model
==========================

The idea of this package is very simple; it is to add encryption to the model class attributes in an automated way.

v1.0.3(1y ago)04MITPHP

Since Sep 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/williamsilveira45/encrypt-model)[ Packagist](https://packagist.org/packages/williamrox45/encrypt-model)[ RSS](/packages/williamrox45-encrypt-model/feed)WikiDiscussions main Synced today

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

Encrypt Model
=============

[](#encrypt-model)

Simple trait to add in your models if you want to save it encrypted in the database, e.g: Store credit cards or any sensible data.

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

[](#requirements)

Laravel 9+

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

[](#installation)

`composer require williamrox45/encrypt-model`

Usage
-----

[](#usage)

```
use William\EncryptModel\EncryptModel;

class User extends Authenticatable
{
    use HasFactory;
    use Notifiable;
    use SoftDeletes;
    use EncryptModel; // name = "William";
$user->email = "will123@will123.com";

dump($user);
/**
 * These values will be save like this in the database
 *
 * name = eyJpdiI6ImxyeVRBMGZrdGV2TDE1N1BkdzhRbFE9PSIsInZhbHVlIjoiUEd0QjlNbzNLMDBidXYySUtnRHB4dz09IiwibWFjIjoiMWY2ZDhjZjVhMmY5Mzk1ZGJlZDlhZWEyODk1ODg4NzIzOTdlZWE5MGY3ODhjNmM1ZDUzOGY2MzM5ZjEzOWI3YSIsInRhZyI6IiJ9
 * email = eyJpdiI6InhqamlKQVIxalFEdFNuRDZqNnZZTHc9PSIsInZhbHVlIjoicmgrMktBcDJwUllvZzFEZ3h6VDd3dlhKZXBPSWNuMi9TcHYrYnBZb2wrVT0iLCJtYWMiOiI2MGM0YmI5Mzc1ZjkxZjFkY2VkNDE3MzIwZDRjYjQ5ODc4ZDc1N2JjYTU2MmExNGNkYTlmZjk3NTU4ODM1Y2M5IiwidGFnIjoiIn0
 */
dd($user->name, $user->email);
/**
 * name = William
 * email = will123@will123.com
 */
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

4

Last Release

657d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14284636?v=4)[williamrox45](/maintainers/williamrox45)[@williamrox45](https://github.com/williamrox45)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/williamrox45-encrypt-model/health.svg)

```
[![Health](https://phpackages.com/badges/williamrox45-encrypt-model/health.svg)](https://phpackages.com/packages/williamrox45-encrypt-model)
```

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.6k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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