Git Product home page Git Product logo

laravel-openssl-encryption's Introduction

laravel-openssl-encryption

Laravel 4 encryption package that uses the PHP openssl extension.

It can replace the default Laravel 4 encryption core package that uses the PHP mcrypt extension.

It has been created to run Laravel 4 apps on the Google App Engine for PHP platform that currently (may 2013) does not support the mcrypt extension.

Installation

Add the neoxia/laravel-openssl-encryption package to your composer.json file.

"require": {
	"laravel/framework": "4.0.*",
	"neoxia/laravel-openssl-encryption": "1.0.*"
},

Install the package.

$ php composer.phar install

In the app/config/app.php file, register the LaravelOpensslEncryptionServiceProvider and comment the default EncryptionServiceProvider.

'providers' => array(

	...
	//'Illuminate\Encryption\EncryptionServiceProvider',
	'Neoxia\LaravelOpensslEncryption\LaravelOpensslEncryptionServiceProvider',
	...

One more thing ...

Currently, Laravel 4 checks if the PHP mcrypt extension is loaded and die if it is not !
So, to complete the installation, we have to bypass this check.
But unfortunately, this check is done in the Illuminate\Foundation\start.php script, at the heart of the framework bootstrap process.

To bypass the check, change the start.php script in the vendor\laravel\framework\src\Illuminate\Foundation folder as follow.

if ( false and ! extension_loaded('mcrypt'))
{
	die('Laravel requires the Mcrypt PHP extension.'.PHP_EOL);

	exit(1);
}

laravel-openssl-encryption's People

Contributors

changwuf31 avatar gmergoil avatar

Watchers

 avatar  avatar

Forkers

isnotset

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.