giofreitas/wordpress-composer-setup 问题修复 & 功能扩展

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

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

giofreitas/wordpress-composer-setup

Composer 安装命令:

composer require giofreitas/wordpress-composer-setup

包简介

A composer plugin to setup your WordPress environment to be friends with composer.

README 文档

README

A composer plugin to setup your WordPress environment to be friends with composer. It uses johnpbloch/wordpress package to install WordPress core files.

How?

This plugin will create the wp-config.php file with the necessary definitions to let WordPress to be suitable with composer. You just need to insert database details and this wordpress-composer-setup will handle the rest.

Why wp-config.php?

The wp-config.php is the only non-core file that surely, will be loaded either in frontend or in admin. so its a good place to setup everything we need

Usage

To Setup a WordPress installation including wp-config.php, add the following to your package's composer file:

"require": {
	"johnpbloch/wordpress": "4.9.5",
	"giofreitas/wordpress-composer-setup": "0.1"
}

You can manually set the site url in extra (do not define if you want it to be dynamic through all environments):

"extra": {
	"wordpress-site-url": "localhost"
}

We can also make use of some options from johnpbloch/wordpress-core-installer and composer/installers to change some default configurations:

"extra": {
	"wordpress-install-dir": "wordpress"
	"installer-paths": {
	    "wp-content/themes/{$name}/": ["type:wordpress-theme"],
	    "wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
	    "wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"]
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固