Download the PHP package huihuangjiuai/thinkphp5.1-migration without Composer
On this page you can find all versions of the php package huihuangjiuai/thinkphp5.1-migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package thinkphp5.1-migration
thinkphp5.1-migration
此插件的项目环境为php8.0 thinkphp5.1.41 原项目为 thinkphp-migration:2.0.3
此插件建立的目的是为了兼容php8版本的环境,php8环境下变量类型要求严格,之前很多模棱两可的函数用法会出现错误,比如
原插件的Phinx/Util/Util.php文件
$fileName = static::getCurrentTimestamp() . '' . strtolower(implode( $arr,'')) . '.php';
此行代码的implode($arr,'')函数,在php8环境中会出现错误, Type error: implode(): Argument #2 ($array) must be of type ?array, string given
应该这么用,implode('',$arr)。具体原因请自行查看php官方文档。
thinkphp5.1 数据库迁移工具
安装
composer require huihuangjiuai/thinkphp5.1-migration
用法和官方的thinkphp-migration:2.0.3一样一样的
All versions of thinkphp5.1-migration with dependencies
PHP Build Version
Package Version
Requires
topthink/framework Version
5.1.*
The package huihuangjiuai/thinkphp5.1-migration contains the following files
Loading the files please wait ....