neoxia/laravel-openssl-encryption-42 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

neoxia/laravel-openssl-encryption-42

最新稳定版本:1.2

Composer 安装命令:

composer require neoxia/laravel-openssl-encryption-42

包简介

Laravel 4 encryption package that uses the PHP openssl extension

README 文档

README

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);
}

统计信息

  • 总下载量: 115
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固