PHPackages                             thomaswelton/laravel-mcrypt-faker - 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. thomaswelton/laravel-mcrypt-faker

ActiveLibrary[Security](/categories/security)

thomaswelton/laravel-mcrypt-faker
=================================

Allows installation of Laravel where the PHP Mcrypt extension is not available. Provides encryption using OpenSSL, or by disabling encryption entierly.

1.0.0(11y ago)113.8k5[2 issues](https://github.com/thomaswelton/laravel-mcrypt-faker/issues)MITPHPPHP &gt;=5.4.0

Since May 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/thomaswelton/laravel-mcrypt-faker)[ Packagist](https://packagist.org/packages/thomaswelton/laravel-mcrypt-faker)[ RSS](/packages/thomaswelton-laravel-mcrypt-faker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Without Mcrypt
======================

[](#laravel-without-mcrypt)

This package uses a trick to fool composer into thinking that your system has the PHP Mcrypt extension installed. Allowing you to install Laravel on shared hosts or systems where Mcrypt is not present. In addition it provides two service providers `NoEncryptionServiceProvider` and `OpensslEncryptionServiceProvider` for use as an alternative to `Illuminate\Encryption\EncryptionServiceProvider`

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

[](#installation)

Install via composer to an exisiting working Laravel project.

```
composer require thomaswelton/laravel-mcrypt-faker

```

If you are unable to install Laravel via composer due to no having Mcrypt installed then you will need to add this package manually. Download the latest Laravel source and edit the `composer.json` so your require block looks as follows.

```
"require": {
	"thomaswelton/laravel-mcrypt-faker": "1.0.*",
	"laravel/framework": "5.0.*"
}

```

The run `composer install` which will install this package along with the laravel framework.

Updating the Encryption Service Provider
----------------------------------------

[](#updating-the-encryption-service-provider)

In your `config/app.php` file remove `Illuminate\Encryption\EncryptionServiceProvider` from the `providers` array and replace it with either `Thomaswelton\LaravelMcryptFaker\NoEncryptionServiceProvider` or `Thomaswelton\LaravelMcryptFaker\OpensslEncryptionServiceProvider`

Also update the `cipher` in `config/app.php` and set it to `null` as the cipher value `MCRYPT_RIJNDAEL_128` is a constant that would not be defined without mcrypt

**WARNING** The NoEncryptionServiceProvider, as the name suggests, provides no encryption for your application... at all. This should not be used in a production website. And even though the `OpensslEncryptionServiceProvider` provides encryption using the defuse/php-encryption package I personally can not attest to how cryptographically secure it's implementation is, even thought it "Works for me"

### OpensslEncryption Key

[](#opensslencryption-key)

To use the OpensslEncryptionServiceProvider your app secret key needs to be updated. This can be done by running `php artisan key:generate-openssl`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4017d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b93a2491ddf17fc2e53ee81250b83cb0c77beb9f1780490324d676403771136?d=identicon)[thomaswelton](/maintainers/thomaswelton)

---

Top Contributors

[![thomaswelton](https://avatars.githubusercontent.com/u/678372?v=4)](https://github.com/thomaswelton "thomaswelton (2 commits)")

---

Tags

laravelencryptionmcrypthack

### Embed Badge

![Health badge](/badges/thomaswelton-laravel-mcrypt-faker/health.svg)

```
[![Health](https://phpackages.com/badges/thomaswelton-laravel-mcrypt-faker/health.svg)](https://phpackages.com/packages/thomaswelton-laravel-mcrypt-faker)
```

PHPackages © 2026

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