cwsr/mcrypt-compat-speed-patch
最新稳定版本:0.1.2
Composer 安装命令:
composer create-project cwsr/mcrypt-compat-speed-patch
包简介
README 文档
README
For the rare case that you are using the mcrypt extension at the same time as having phpseclib's mcrypt_compat v1 installed.
mcrypt-compat calls phpseclib's Base.php which calls the mcrypt extension's mcrypt_list_algorithms(), which is noticeably
slower than calling the polyfill's phpseclib_mcrypt_list_algorithms().
See this issue for more details on this issue phpseclib/mcrypt_compat#43
Usage
Install this package with Composer as a Nytris package:
$ composer require cwsr/mcrypt-compat-speed-patch
Configuring platform boot config
Configure Nytris platform to use this package:
nytris.config.php:
<?php declare(strict_types=1); use Cwsr\McryptPatch\McryptCompatSpeedPatchPackage; use Nytris\Boot\BootConfig; use Nytris\Boot\PlatformConfig; $bootConfig = new BootConfig(new PlatformConfig(__DIR__ . '/var/cache/nytris')); // ... $bootConfig->installPackage(new McryptCompatSpeedPatchPackage()); // ... return $bootConfig;
统计信息
- 总下载量: 190
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-02