PHPackages                             irman/legacy-encrypter - 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. irman/legacy-encrypter

ActiveLibrary[Security](/categories/security)

irman/legacy-encrypter
======================

The legacy version of the Laravel mcrypt encrypter.

v7.0.1(2mo ago)1331MITPHPPHP &gt;=7.2.5

Since Mar 23Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/irman/legacy-encrypter)[ Packagist](https://packagist.org/packages/irman/legacy-encrypter)[ Docs](https://github.com/irman/legacy-encrypter)[ RSS](/packages/irman-legacy-encrypter/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (10)Used By (0)

🍴 Forked from [laravel/legacy-encrpyter](https://github.com/laravel/legacy-encrypter) for more Laravel version compatibility. The original repository only supports Laravel `5.3.*`

Laravel VersionPackage VersionInstallation5.3.\*5.3.\*`composer require irman/legacy-encrypter:^5.3.0`5.4.\*5.4.\*`composer require irman/legacy-encrypter:^5.4.0`5.5.\*5.5.\*`composer require irman/legacy-encrypter:^5.5.0`5.6.\*5.6.\*`composer require irman/legacy-encrypter:^5.6.0`5.7.\*5.7.\*`composer require irman/legacy-encrypter:^5.7.0`5.8.\*5.8.\*`composer require irman/legacy-encrypter:^5.8.0`6.\*6.\*`composer require irman/legacy-encrypter:^6.0`7.\*7.\*`composer require irman/legacy-encrypter:^7.0`---

Laravel Legacy Encrypter
========================

[](#laravel-legacy-encrypter)

This encryption package provides support for the legacy Mcrypt encrypter used by Laravel 5.0 through 5.2. It is primarily intended to be used to migrate your data to the new OpenSSL based encrypter used in 5.1 through the latest release of Laravel.

#### Usage Example

[](#usage-example)

```
use Irman\LegacyEncrypter\McryptEncrypter;

$encrypter = new McryptEncrypter($encryptionKey);

$encrypted = $encrypter->encrypt('I am encrypted!');

$decrypted = $encrypter->decrypt($encrypted);
```

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance86

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~275 days

Recently: every ~550 days

Total

9

Last Release

67d ago

Major Versions

v5.8.0 → v6.0.02020-03-27

v6.0.0 → v7.0.02020-03-29

PHP version history (6 changes)v5.3.0PHP &gt;=5.5.9

v5.4.0PHP &gt;=5.6.4

v5.5.0PHP &gt;=7.0

v5.6.0PHP &gt;=7.1.3

v6.0.0PHP &gt;=7.2.0

v7.0.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/2025217494cb4e9e35393bcd1fa28344baac528714a89c794bed3c5917e4e370?d=identicon)[irman](/maintainers/irman)

---

Top Contributors

[![irman](https://avatars.githubusercontent.com/u/6107943?v=4)](https://github.com/irman "irman (9 commits)")[![taylorotwell](https://avatars.githubusercontent.com/u/463230?v=4)](https://github.com/taylorotwell "taylorotwell (3 commits)")[![brendt](https://avatars.githubusercontent.com/u/6905297?v=4)](https://github.com/brendt "brendt (1 commits)")[![clod986](https://avatars.githubusercontent.com/u/5764857?v=4)](https://github.com/clod986 "clod986 (1 commits)")

---

Tags

encrypterencrypter-decrypterlaravelmcrypt

### Embed Badge

![Health badge](/badges/irman-legacy-encrypter/health.svg)

```
[![Health](https://phpackages.com/badges/irman-legacy-encrypter/health.svg)](https://phpackages.com/packages/irman-legacy-encrypter)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[illuminate/database

The Illuminate Database package.

3.0k54.1M11.0k](/packages/illuminate-database)[illuminate/encryption

The Illuminate Encryption package.

9630.4M307](/packages/illuminate-encryption)[laravel/ai

The official AI SDK for Laravel.

9782.1M151](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k239.9k72](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

719160.4k12](/packages/tallstackui-tallstackui)

PHPackages © 2026

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