tuupola / slim-fake-mcrypt
伪造的PHP mcrypt扩展,以启用安装Slim 2.3.*
dev-master
2014-05-16 11:49 UTC
Requires
- php: >=5.3.0
Provides
- ext-mcrypt: *
This package is auto-updated.
Last update: 2024-09-10 04:41:47 UTC
README
Slim 2.3.0引入了一个变化,这使得在使用Composer时mcrypt扩展成为强制性的变更。在某些情况下,您可能无法安装或不想安装此扩展。如果您仍然想使用Composer,请将tuupola/slim-fake-mcrypt添加到composer.json中,然后您就可以继续操作了。
问题在版本2.4.2中已修复。此包仅出于历史原因存在。
{ "repositories": [{ "type": "vcs", "url": "https://github.com/tuupola/slim-fake-mcrypt.git" }], "require": { "tuupola/slim-fake-mcrypt": "dev-master", "slim/slim": "2.3.*" } }
之前
%composer install Loading composer repositories with package information Installing dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - slim/slim 2.3.1 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system. - slim/slim 2.3.0 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system. - Installation request for slim/slim 2.3.* -> satisfiable by slim/slim[2.3.0, 2.3.1]. %
之后
%composer install Loading composer repositories with package information Installing dependencies (including require-dev) - Installing tuupola/slim-fake-mcrypt (dev-master 8eb1cc4) Cloning 8eb1cc4b585e5586a5e86afeaa2ac1871ebcccf4 - Installing slim/slim (2.3.1) Loading from cache Writing lock file Generating autoload files %