定制 dummy-team/wp-installer-composer-scripts 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dummy-team/wp-installer-composer-scripts

最新稳定版本:v0.4.0

Composer 安装命令:

composer require dummy-team/wp-installer-composer-scripts

包简介

Composer scripts for dummy-team/wp-installer

README 文档

README

Thoses scripts are used in wp-installer package and can be called after composers events (create-project, install and update)

Installation

Install composer and require this package

composer require dummy-team/wp-installer-composer-scripts

You have to set some parameters in the extra block of your composer.json to allow scripts to access your files

  "extra": {
    "dummyteam-parameters": {
      "parameter-file": "web/wp/wp-config-sample.php",
      "destination-folder": "web/"
    }
  }
  • parameter-file (required): the path to the wp-config-sample.php file of the default Wordpress install
  • destination-folder (optional): destination folder for your final wp-config.php and wp-config.php.dist files

Scripts

Build parameters

This script build your wp-config.php and wp-config.php.dist, find all parameters set in the dist file and ask the value required for your local version.

How to use it

Add those lines to your composer.json

"scripts": {
    "post-install-cmd": [
        "DummyTeam\\WpInstallerComposerScripts\\Parameters::build"
    ],
    "post-update-cmd": [
        "DummyTeam\\WpInstallerComposerScripts\\Parameters::build"
    ]
}

The next time, you'll execute composer install, composer update or composer create-project ... the script will parse your configuration

Prepare Git

Add those lines to your composer.json

"scripts": {
    "post-create-project-cmd": [
        "DummyTeam\\WpInstallerComposerScripts\\Git::build"
    ]
}

The next time, you'll execute composer create-project ... the script will parse your configuration

Prepare structure

Add those lines to your composer.json

"scripts": {
    "post-create-project-cmd": [
        "DummyTeam\\WpInstallerComposerScripts\\Structure::build"
    ]
}

The next time, you'll execute composer create-project ... the script will parse your configuration

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固