piotrpress/wpml-composer 问题修复 & 功能扩展

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

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

piotrpress/wpml-composer

最新稳定版本:v0.2.0

Composer 安装命令:

composer require piotrpress/wpml-composer

包简介

This composer plugin enables installation of WPML (WordPress Multilingual) plugin and its components.

README 文档

README

This composer plugin enables installation of WPML (WordPress Multilingual) plugin and its components.

Example

$ composer require wpml/sitepress-multilingual-cms:*
$ composer require wpml/woocommerce-multilingual:*

NOTE: Package name can be any WPML component slug.

Installation

You need to follow these steps only once to install the plugin:

  1. Provide WPML user_id and subscription_key from your account:
$ composer config -g http-basic.wpml.org <user_id> <subscription_key>

NOTE: using -g option is recommended to keep credentials outside of project's files.

  1. Allow the plugin execution:
$ composer config -g allow-plugins.piotrpress/wpml-composer true
  1. Add the plugin as a global composer requirement:
$ composer global require piotrpress/wpml-composer

Usage

The WPML plugin and its addons have a type set to wordpress-plugin and can be installed in custom location using for example Composer Installers:

{
  "require": {
    "wpml/sitepress-multilingual-cms": "*",
    "wpml/woocommerce-multilingual": "*",
    "composer/installers": "^2.0"
  },
  "config": {
    "allow-plugins": {
      "composer/installers": true
    }
  },
  "extra": {
    "installer-paths": {
      "wp-content/plugins/{$name}/": [
        "type:wordpress-plugin"
      ]
    }
  }
}

Requirements

  • PHP >= 7.4 version.
  • Composer ^2.0 version.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-10