Download the PHP package easyswoole/db-migrate without Composer

On this page you can find all versions of the php package easyswoole/db-migrate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package db-migrate

db-migrate

参照Laravel开发的easyswoole数据库版本迁移工具

安装

使用方法

在全局 boostrap 事件中注册 MigrateCommand 并添加配置信息

bootstrap.php

:::tip
如果不自定义setMigratePathsetSeederPath配置项,所有迁移命令必须在项目根目录(固定目录)下执行
:::

执行 php easyswoole migrate -h

create

创建一个迁移模板

当需要新建表、修改表、删除表时,create命令可以创建一个简单的迁移模板文件

可用操作选项:

操作会在迁移文件目录生成一个类似文件名为2021_04_08_082914_user.php的文件,代码类似如下,对应操作使用的是 easyswoole/ddl 组件方法

generate

对已存在的表生成适配当前迁移工具的迁移模板

对于已经启动的项目没有做版本迁移,generate命令可以对已存在的表逆向生成迁移文件

对已存在的表生成适配当前迁移工具的迁移模板

可用操作选项:

run

对所有未迁移的文件执行迁移操作

rollback

回滚迁移记录,默认回滚上一次的迁移,指定操作相关参数可以从status命令中查看

可用操作选项:

reset

根据迁移表的记录,一次性回滚所有迁移

seed

数据填充工具

不加操作项即为执行填充数据操作,添加操作项即为创建填充模板

生成模板文件之后,方法内的操作使用 easyswoole/mysqli 做数据填充

可用操作选项:

status

迁移状态

展示成功迁移的数据,即为迁移表内的数据


All versions of db-migrate with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
easyswoole/spl Version ^1.0
easyswoole/ddl Version ^1.0
easyswoole/command Version ^1.1
easyswoole/component Version ^2.0
easyswoole/utility Version ^1.0
easyswoole/mysqli Version ^2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package easyswoole/db-migrate contains the following files

Loading the files please wait ....