PHPackages                             tomgrohl/laravel4-php71-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. tomgrohl/laravel4-php71-encrypter

ActiveLibrary[Security](/categories/security)

tomgrohl/laravel4-php71-encrypter
=================================

Laravel 4.2 Encrypter for PHP 7.1+

1.1.3(8y ago)42248.7k↓17.2%11MITPHPPHP &gt;=5.6.4

Since Jun 1Pushed 4y ago3 watchersCompare

[ Source](https://github.com/tomgrohl/laravel4-php71-encrypter)[ Packagist](https://packagist.org/packages/tomgrohl/laravel4-php71-encrypter)[ RSS](/packages/tomgrohl-laravel4-php71-encrypter/feed)WikiDiscussions 1.1 Synced 1mo ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/993d356c4f401f195fecb387358bd335e2e50e95a7cf7aca135665f8a2fdbe61/68747470733a2f2f706f7365722e707567782e6f72672f746f6d67726f686c2f6c61726176656c342d70687037312d656e637279707465722f762f737461626c65)](https://packagist.org/packages/tomgrohl/laravel4-php71-encrypter)[![Latest Unstable Version](https://camo.githubusercontent.com/4c7328c00ed53cabc4156db711c627dbd8343cf0ecae39c477b4b607c6779293/68747470733a2f2f706f7365722e707567782e6f72672f746f6d67726f686c2f6c61726176656c342d70687037312d656e637279707465722f762f756e737461626c65)](https://packagist.org/packages/tomgrohl/laravel4-php71-encrypter)[![License](https://camo.githubusercontent.com/115aaa23f036d54d7cde97cd0e4753194456fa9397761a21811a8d264d04f399/68747470733a2f2f706f7365722e707567782e6f72672f746f6d67726f686c2f6c61726176656c342d70687037312d656e637279707465722f6c6963656e7365)](https://packagist.org/packages/tomgrohl/laravel4-php71-encrypter)

Laravel 4.2 Encrypter for PHP 7.1+
==================================

[](#laravel-42-encrypter-for-php-71)

A port of the Laravel 5.4 Encrypter for 4.2 with PHP 7.1 support.

Due to mcrypt being deprecated in 7.1 you can't run Laravel 4.2 under PHP 7.1 without a lot of deprecate warnings.

This package adds a PHP 7.1+ Encrypter for Laravel 4.2

> **Note:** Backward compatibility has been added in version 1.1.0 for PHP 5.6+ to make upgrading easier

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

[](#installation)

You can install it using composer:

`composer require tomgrohl/laravel4-php71-encrypter`

Configuration
-------------

[](#configuration)

### 1 .Add service provider

[](#1-add-service-provider)

Add the following to your `providers` in the `app` config

```
\Tomgrohl\Laravel\Encryption\EncryptionServiceProvider::class

```

### 2. Check Encryption Key settings in app config

[](#2-check-encryption-key-settings-in-app-config)

Cipher must either be 'AES-128-CBC' with a key length of 16

OR

Cipher must either be 'AES-256-CBC' with a key length of 32

### 3. You're good to go!

[](#3--youre-good-to-go)

Credits
=======

[](#credits)

- Peter Fritchley - Fellow co-worker that wrote this originally for a project

License
=======

[](#license)

MIT

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~262 days

Recently: every ~379 days

Total

7

Last Release

1698d ago

PHP version history (2 changes)1.0.0PHP ~7.1.0

1.1.0PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8a5cdb8c917b207f5018caffe60905dd158d0ff21ce4f9f713ca63b53b8038d?d=identicon)[tomgrohl](/maintainers/tomgrohl)

---

Top Contributors

[![tomgrohl](https://avatars.githubusercontent.com/u/418838?v=4)](https://github.com/tomgrohl "tomgrohl (11 commits)")

---

Tags

encryptionlaravellaravel4laravelencryption

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomgrohl-laravel4-php71-encrypter/health.svg)

```
[![Health](https://phpackages.com/badges/tomgrohl-laravel4-php71-encrypter/health.svg)](https://phpackages.com/packages/tomgrohl-laravel4-php71-encrypter)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[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.

113.8k](/packages/thomaswelton-laravel-mcrypt-faker)

PHPackages © 2026

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