PHPackages                             darbe/laravel-secure-payload - 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. darbe/laravel-secure-payload

ActiveLibrary[Security](/categories/security)

darbe/laravel-secure-payload
============================

Reusable secure payload encryption and decryption using client\_id and secret\_key

v1.0.4(1y ago)011MITPHPPHP &gt;=7.2

Since May 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rosyidaja/darbe-laravel-secure-package)[ Packagist](https://packagist.org/packages/darbe/laravel-secure-payload)[ RSS](/packages/darbe-laravel-secure-payload/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Secure Payload
======================

[](#laravel-secure-payload)

🔐 A Laravel package for secure encryption and decryption of data using `client_id` and `secret_key`.

Features
--------

[](#features)

- AES-256-CBC encryption
- Timestamp validation (anti-replay)
- Works with multiple clients from database
- Laravel 6+ compatible
- No middleware — manually use in controllers

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

[](#installation)

### 1. Require the package (local or private repo)

[](#1-require-the-package-local-or-private-repo)

```
composer require darbe/laravel-secure-payload
```

If you're using a local path repository, add this to your `composer.json`:

```
"repositories": [
  {
    "type": "path",
    "url": "packages/darbe/laravel-secure-payload"
  }
]
```

### 2. Add `client_id` and `secret_key` to your `clients` table

[](#2-add-client_id-and-secret_key-to-your-clients-table)

Usage
-----

[](#usage)

### Encrypt data

[](#encrypt-data)

```
use SecurePayload;

$payload = ['user_id' => 1, 'role' => 'admin'];
$encrypted = SecurePayload::encrypt($payload, 'app1');
```

### Decrypt data

[](#decrypt-data)

```
use SecurePayload;

$decrypted = SecurePayload::decrypt($encrypted, 'app1');
```

Compatibility
-------------

[](#compatibility)

- Laravel 6.x+
- PHP &gt;= 7.2

License
-------

[](#license)

MIT © Darbe Group

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance49

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

5

Last Release

369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05a4fe066bf84aedf0b4234ee5553869f0d287d0696fb47a08ddd73d344046b7?d=identicon)[rosyidrisna](/maintainers/rosyidrisna)

---

Top Contributors

[![rosyidaja](https://avatars.githubusercontent.com/u/13878401?v=4)](https://github.com/rosyidaja "rosyidaja (5 commits)")

### Embed Badge

![Health badge](/badges/darbe-laravel-secure-payload/health.svg)

```
[![Health](https://phpackages.com/badges/darbe-laravel-secure-payload/health.svg)](https://phpackages.com/packages/darbe-laravel-secure-payload)
```

###  Alternatives

[illuminate/encryption

The Illuminate Encryption package.

9229.7M278](/packages/illuminate-encryption)[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

241641.4k1](/packages/tzsk-otp)[genealabs/laravel-governor

Managing policy and control in Laravel.

201262.8k](/packages/genealabs-laravel-governor)[dgtlss/warden

A Laravel package that proactively monitors your dependencies for security vulnerabilities by running automated composer audits and sending notifications via webhooks and email

8745.6k](/packages/dgtlss-warden)[ercsctt/laravel-file-encryption

Secure file encryption and decryption for Laravel applications

642.6k](/packages/ercsctt-laravel-file-encryption)[laragear/poke

Keep your forms alive, avoid TokenMismatchException by gently poking your Laravel app

2211.5k](/packages/laragear-poke)

PHPackages © 2026

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