PHPackages                             sloumach/full-encryption-package - 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. sloumach/full-encryption-package

ActiveLibrary[Security](/categories/security)

sloumach/full-encryption-package
================================

Laravel package for full per-user encryption and decryption of big text data.

v1.0.0(1y ago)10MITPHPPHP &gt;=8.0

Since Jun 30Pushed 1y agoCompare

[ Source](https://github.com/sloumach/full-encryption-package)[ Packagist](https://packagist.org/packages/sloumach/full-encryption-package)[ RSS](/packages/sloumach-full-encryption-package/feed)WikiDiscussions main Synced today

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

🔐 Full Encryption for Laravel:
==============================

[](#-full-encryption-for-laravel)

A lightweight Laravel package that enables **user-specific encryption and decryption** using a unique encrypted key stored per user.
Useful for securely storing sensitive user data like messages or personal info.

---

🚀 Features:
-----------

[](#-features)

- Simple methods: `fullEncrypt()` and `fullDecrypt()`
- Each user has a unique encryption key (`enckey`)
- Easy integration using a **trait** or **facade**
- Laravel versions supported: `^8.0 | ^9.0 | ^10.0 | ^11.0 | ^12.0`

---

📦 Installation
--------------

[](#-installation)

```
composer require sloumach/full-encryption-package

```

If you're using a GitHub VCS repo:
==================================

[](#if-youre-using-a-github-vcs-repo)

```
"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/sloumach/full-encryption-package"
  }
]
```

🔧 Configuration &amp; Setup:
----------------------------

[](#-configuration--setup)

Publish config and migration
============================

[](#publish-config-and-migration)

php artisan vendor:publish --tag=full-encryption-config php artisan vendor:publish --tag=full-encryption-migrations

Then run the migration: php artisan migrate

Generate encrypted keys for all users php artisan full:generate-keys

🧬 Usage:
--------

[](#-usage)

Option 1 – Via Facade:
======================

[](#option-1--via-facade)

```
use FullEncryption\Facades\FullEncrypted;
use App\Models\User;
$user = User::first();
$encrypted = FullEncrypted::fullEncrypt('Hello world!', $user);
$decrypted = FullEncrypted::fullDecrypt($encrypted, $user);
```

Option 2 – Via Trait:
=====================

[](#option-2--via-trait)

```
use FullEncryption\Traits\Encryptable;
class User extends Authenticatable {
    use Encryptable;
}
```

Then call:
==========

[](#then-call)

```
$user = User::first();
$encrypted = $user->fullEncrypt('Hello word');
$decrypted = $user->fullDecrypt($encrypted);
```

⚙️ How It Works:
================

[](#️-how-it-works)

Each user has an enckey (stored encrypted) generated from their email. This enckey is used as a symmetric key for AES-based encryption. The package does not depend on Laravel's APP\_KEY.

🛡️ Security Notes:
==================

[](#️-security-notes)

The encrypted key itself is protected using Laravel's encryption system. You can override the logic by extending the service class.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance50

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c6414f9dd4e8e6a55cc56c7c23074be2d11ad4643c1980a7d2d5e1b0ef50717?d=identicon)[sloumach](/maintainers/sloumach)

---

Top Contributors

[![sloumach](https://avatars.githubusercontent.com/u/34315160?v=4)](https://github.com/sloumach "sloumach (9 commits)")

### Embed Badge

![Health badge](/badges/sloumach-full-encryption-package/health.svg)

```
[![Health](https://phpackages.com/badges/sloumach-full-encryption-package/health.svg)](https://phpackages.com/packages/sloumach-full-encryption-package)
```

###  Alternatives

[illuminate/encryption

The Illuminate Encryption package.

9630.7M325](/packages/illuminate-encryption)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel-chronicle/core

Tamper-evident audit ledger for Laravel applications.

1213.1k3](/packages/laravel-chronicle-core)

PHPackages © 2026

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