Skip to content

timcv/laravel4-php71-encrypter

This branch is 1 commit behind tomgrohl/laravel4-php71-encrypter:1.1.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1e4d470 · Jan 29, 2018

History

10 Commits
Sep 26, 2017
May 26, 2017
Jul 29, 2017
Jun 1, 2017
Jul 28, 2017
Jan 29, 2018
Jan 29, 2018
Jun 1, 2017
Jun 1, 2017

Repository files navigation

Latest Stable Version Latest Unstable Version License

Laravel 4.2 Encrypter for PHP 7.1+

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

You can install it using composer:

composer require tomgrohl/laravel4-php71-encrypter

Configuration

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

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!

Credits

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

License

MIT

About

Laravel 4.2 Encrypter for PHP 7.1+

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%