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(7mo ago)16.2k2[1 PRs](https://github.com/mozafar/encbuddy/pulls)MITPHPPHP &gt;=7.0CI failing

Since Mar 5Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/mozafar/encbuddy)[ Packagist](https://packagist.org/packages/mozafar/encbuddy)[ RSS](/packages/mozafar-encbuddy/feed)WikiDiscussions master Synced 1w 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

41

—

FairBetter than 89% of packages

Maintenance64

Regular maintenance activity

Popularity22

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

219d 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

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[genealabs/laravel-model-caching

Automatic caching for Eloquent models.

2.4k4.8M26](/packages/genealabs-laravel-model-caching)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[mikebronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k127.1k1](/packages/mikebronner-laravel-model-caching)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)

PHPackages © 2026

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