harmonic/wp-migrate-db-pro-installer 问题修复 & 功能扩展

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

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

harmonic/wp-migrate-db-pro-installer

Composer 安装命令:

composer require harmonic/wp-migrate-db-pro-installer

包简介

An install helper for WP Migrate DB PRO

README 文档

README

A composer plugin that makes installing WP Migrate DB Pro with composer easier, based on the amazing work by PhilippBaschke and his [acf-pro-installer] https://github.com/PhilippBaschke/acf-pro-installer

It reads your 🔑 WP Migrate DB Pro key and site URL from the environment or a .env file so that you do not need to commit them to source control.

Usage

1. Add the package repository to the repositories field in composer.json (based on this gist):

{
  "type": "package",
  "package": {
    "name": "deliciousbrains/wp-migrate-db-pro",
    "version": "*.*.*(.*)",
    "type": "wordpress-plugin",
    "dist": {
      "type": "zip",
      "url": "https://deliciousbrains.com/dl/wp-migrate-db-pro-latest.zip"
    },
    "require": {
      "harmonic/wp-migrate-db-pro-installer": "^1.0",
      "composer/installers": "^1.0"
    }
  }
}

Replace "version": "*.*.*(.*)" with your desired version.

Replace "type": "wordpress-plugin" with "type": "library" if you would like to have WP MIGRATE DB PRO installed in the ./vendor directory instead of ./wp-content/plugins. This may be desireable if for example, you are including WP MIGRATE DB PRO in a WordPress theme.

If you also require the media files and cli plugins you can add these as well:

{
  "type": "package",
  "package": {
    "name": "deliciousbrains/wp-migrate-db-pro",
    "version": "*.*.*(.*)",
    "type": "wordpress-plugin",
    "dist": {
      "type": "zip",
      "url": "https://deliciousbrains.com/dl/wp-migrate-db-pro-media-files-latest.zip"
    },
    "require": {
      "harmonic/wp-migrate-db-pro-installer": "^1.0",
      "composer/installers": "^1.0"
    }
  }
},
{
  "type": "package",
  "package": {
    "name": "deliciousbrains/wp-migrate-db-pro",
    "version": "*.*.*(.*)",
    "type": "wordpress-plugin",
    "dist": {
      "type": "zip",
      "url": "https://deliciousbrains.com/dl/wp-migrate-db-pro-cli-latest.zip"
    },
    "require": {
      "harmonic/wp-migrate-db-pro-installer": "^1.0",
      "composer/installers": "^1.0"
    }
  }
}

2. Make your WP MIGRATE DB PRO key available

Set the environment variable WP_MIGRATE_DB_PRO_KEY to your WP Migrate DB Pro PRO key. Set the environment variable APP_URL to your website URL. Full URL is accepted so you can also use this variable in your wp-config.php.

Alternatively you can add an entry to your .env file:

# .env (same directory as composer.json)
WP_MIGRATE_DB_PRO_KEY=Your-Key-Here
APP_URL=http://site.com

3. Require WP Migrate DB Pro

composer require deliciousbrains/wp-migrate-db-pro:*

You can specify an exact version (that matches your desired version).

If you use *, composer will install the version from the package repository (see 1). This has the benefit that you only need to change the version in the package repository when you want to update.

Be aware that composer update will only work if you change the version in the package repository. Decreasing the version only works if you require an exact version.

统计信息

  • 总下载量: 8.1k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 66
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固