PHPackages                             mozafar/encbuddy - 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. mozafar/encbuddy

ActiveLibrary[Security](/categories/security)

mozafar/encbuddy
================

Package to encrypt response and decrypt request body

v1.2.4(8mo ago)16.2k2[1 PRs](https://github.com/mozafar/encbuddy/pulls)MITPHPPHP &gt;=7.0CI failing

Since Mar 5Pushed 8mo ago3 watchersCompare

[ Source](https://github.com/mozafar/encbuddy)[ Packagist](https://packagist.org/packages/mozafar/encbuddy)[ RSS](/packages/mozafar-encbuddy/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (5)Versions (11)Used By (0)

encbuddy
========

[](#encbuddy)

Laravel package to encrypt response content and decrypt request body

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

[](#installation)

1- Install package using composer

```
composer require mozafar/encbuddy
```

2- Publish config file

```
php artisan vendor:publish --tag=encbuddy-config
```

3- Add it to laravel global middlewares

```
protected $middleware = [
    .
    .
    .,
    \Mozafar\EncBuddy\EncBuddyMiddleware::class,
];
```

4- Register development routes

```
Route::encryption();
```

Custom key resolver
-------------------

[](#custom-key-resolver)

To get key from other sources like your DB or file you can use a class which implements `\Mozafar\EncBuddy\KeyResolverInterface` like following example:

```
namespace Your\Name\Space;

class MyKeyResolver implements KeyResolverInterface
{
    public function key(): string
    {
        return 'My custom key';
    }
}
```

You can add the implemented class in config file:

```
/*
|--------------------------------------------------------------
| Custom class to get key and cipher
|--------------------------------------------------------------
| If set this config to null then constant key will
| be used
*/
'custom_key_resolver' => \Your\Name\Space\MyKeyResolver::class,
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance58

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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 ~240 days

Recently: every ~419 days

Total

8

Last Release

266d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/985ff86edb5c7f0f08f925e94916b06a7c9b29b1fd9b779fa0afd088ca56bc4b?d=identicon)[mozafar](/maintainers/mozafar)

---

Top Contributors

[![mozafar](https://avatars.githubusercontent.com/u/6140969?v=4)](https://github.com/mozafar "mozafar (16 commits)")[![mozafar-gholami](https://avatars.githubusercontent.com/u/87058412?v=4)](https://github.com/mozafar-gholami "mozafar-gholami (10 commits)")[![behinfaraz](https://avatars.githubusercontent.com/u/24180855?v=4)](https://github.com/behinfaraz "behinfaraz (1 commits)")[![mgh145](https://avatars.githubusercontent.com/u/6759179?v=4)](https://github.com/mgh145 "mgh145 (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mozafar-encbuddy/health.svg)

```
[![Health](https://phpackages.com/badges/mozafar-encbuddy/health.svg)](https://phpackages.com/packages/mozafar-encbuddy)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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