megumi/wp-cli-yaml 问题修复 & 功能扩展

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

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

megumi/wp-cli-yaml

Composer 安装命令:

composer require megumi/wp-cli-yaml

包简介

WP-CLI command imports/exports WordPress settings

README 文档

README

System Requirements

  • PHP >=5.3
  • wp-cli >=0.17.0

Installing

Installing without composer.

$ mkdir ~/.wp-cli
$ touch ~/.wp-cli/config.yml
$ mkdir ~/.wp-cli/commands

Then install.

$ cd ~/.wp-cli/commands
$ git clone git@github.com:megumi-wp-composer/megumi-wp-cli-yaml.git

Then edit the ~/.wp-cli/config.yml file so that it looks like following.

require:
  - commands/megumi-wp-cli-yaml/cli.php

Install into wp-content/mu-plugins with composer.

Place the composer.json like following.

{
    "name": "megumi/mu-plugins",
    "authors": [
        {
            "name": "John Smith",
            "email": "john@example.com"
        }
    ],
    "require": {
        "megumi/wp-cli-yaml": "*"
    }
}

Place the plugin file like following,

<?php
/*
Plugin Name: mu-plugin for example.com
*/

require_once dirname( __FILE__ ) . '/vendor/autoload.php';

Then, just run composer.

$ composer install

How to develop

$ git clone git@github.com:megumi-wp-composer/megumi-wp-cli-yaml.git
$ composer install

Then create or edit the ~/.wp-cli/config.yml file so that it looks like this:

require:
- /path/to/megumi-wp-cli-yaml/cli.php

Functional tests

Initialize the testing environment locally.

$ WP_CLI_BIN_DIR=/tmp/wp-cli-phar WP_CLI_CONFIG_PATH=/tmp/wp-cli-phar/config.yml bash bin/install-package-tests.sh

Then run the tests.

$ WP_CLI_BIN_DIR=/tmp/wp-cli-phar WP_CLI_CONFIG_PATH=/tmp/wp-cli-phar/config.yml vendor/bin/behat

See also:

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-04-23