PHPackages                             pmedynskyi/laravel-encrypt - 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. pmedynskyi/laravel-encrypt

ActiveLibrary[Security](/categories/security)

pmedynskyi/laravel-encrypt
==========================

1.0.0(2y ago)0517[1 issues](https://github.com/pmedynskyi/laravel-encrypt/issues)PHPPHP ^8.0

Since Sep 1Pushed 2y ago2 watchersCompare

[ Source](https://github.com/pmedynskyi/laravel-encrypt)[ Packagist](https://packagist.org/packages/pmedynskyi/laravel-encrypt)[ RSS](/packages/pmedynskyi-laravel-encrypt/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

LARAVEL-ENCRYPT
===============

[](#laravel-encrypt)

- Use trait for your models when you want to hash attribute, in the database type of field for the attribute should be `TEXT`:
- Example for Model:

```
use Illuminate\Database\Eloquent\Casts\Attribute;

...implements ...IModelUseEncryptedAttributes{
use ModelUseEncryptedAttributes;
...
    public function attributeOne() :Attribute
    {
        return $this->encryptedAttribute();
    }
...
    public function attributeTwo() :Attribute
    {
        return $this->encryptedAttribute();
    }
...

```

- Attribute will automatically been hashed for save/update and uhashed when you will initialize the model

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.9% 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

1037d ago

### Community

Maintainers

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

---

Top Contributors

[![pmedynskyi](https://avatars.githubusercontent.com/u/85118993?v=4)](https://github.com/pmedynskyi "pmedynskyi (31 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/pmedynskyi-laravel-encrypt/health.svg)

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

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)

PHPackages © 2026

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