承接 lightscale/migrator-config-wordpress 相关项目开发

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

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

lightscale/migrator-config-wordpress

Composer 安装命令:

composer require lightscale/migrator-config-wordpress

包简介

A helper class to configure lightscale/migrator to work in a wordpress plugin

README 文档

README

A configuration for lightscale/migrator that enabled it to work in a wordpress theme or plugin. It provides the class Lightscale\Migrator\Config\Wordpress.

Install

This should be installed from packagist with composer:

$ composer require lightscale/migrator-config-wordpress

Usage

To use it install Lightscale/Migrator into the your plugin or themes directory.

Then create a config file migrator_config.php in the root of the directory. This file needs to look something like this:

<?php

use Lightscale\Migrator\Config\Wordpress;

$config = new Wordpress('textdomain', __DIR__);
return $config->config();

Reference

Constructor

__construct($namespace, $base_dir, $directory = 'dbmigrations', $load_path = '../../../wp-load.php')

  • $namespace (string) - is the text domain that is used to create a key in the wp_options table.
  • $base_dir (string) - is the directory that is the base of install. Relative to config. Can be DIR
  • $directory (string) - is the directory when the migrations are stored.
  • $load_path (string) - is the path to wp-load.php for initialising wordpress with the commandline migrator tool.

Methods

config()

return - the config array to return from the migrator_config.php file.

Release history

  • 0.0.2 Added base_dir functionality
  • 0.0.1 All core functionality working. Still in on-going development.

Requirements

  • PHP 7.1.3
  • Composer

Contributors

Sam Light

Licence

This project is licensed under the GPLv3 License - see the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2019-10-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固