承接 ixa/wp-config 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ixa/wp-config

Composer 安装命令:

composer require ixa/wp-config

包简介

WordPress Configurator Alternative

README 文档

README

WordPress configuration consistent across environments.

Installation

It can be installed using Composer:

$ composer require ixa/wp-config 0.2

Usage

Ixa Wp-Config is meant to be used in wp-config.php file, this is the recommended way to use it:

use Ixa\WordPress\Configuration\Config;

require_once 'vendor/autoload.php';

// Load Config from config/ folder
$config = new Config(dirname(__FILE__) . '/config');
$config->load();

// ... define all variables and require wp-settings

````

## Configuration Folder

Ixa Wp-Config requires to define a folder in which the configuration will be placed.


### Environment Configuration

The configuration folder must contain a file named `.env.yml` with the following variables. 


````yaml
parameters:
  
  # Environment
  environment:    dev

  # Database Credentials
  db_name:        wordpress
  db_user:        root
  db_password:    ""
  db_host:        localhost

  # Site URL
  wp_home:        http://localhost:1234/

````

All variables are required and must be placed under `parameters`. This is because the `.env.yml`  file can be generated dynamically using [Incenteev/ParameterHandler](https://github.com/Incenteev/ParameterHandler).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固