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(3mo ago)1331MITPHPPHP &gt;=7.2.5

Since Mar 23Pushed 3mo 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 2w 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

42

—

FairBetter than 88% of packages

Maintenance79

Regular maintenance activity

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

112d 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://avatars.githubusercontent.com/u/6107943?v=4)[Irman Ahmad](/maintainers/irman)[@irman](https://github.com/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

3345.3M347](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M245](/packages/laravel-ai)[illuminate/encryption

The Illuminate Encryption package.

9230.7M338](/packages/illuminate-encryption)[illuminate/filesystem

The Illuminate Filesystem package.

15265.2M3.3k](/packages/illuminate-filesystem)[moonshine/moonshine

Laravel administration panel

1.3k253.1k86](/packages/moonshine-moonshine)[tallstackui/tallstackui

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

728176.2k14](/packages/tallstackui-tallstackui)

PHPackages © 2026

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