Skip to content

zirkeldesign/wpml-installer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Add a repository for each WPML plugin you want to use (under repositories in composer.json)

{
  "type": "package",
  "package": {
    "name": "wpml/wpml-multilingual-cms",
    "version": "4.4.12",
    "type": "wordpress-plugin",
    "dist": {
      "type": "zip",
      "url": "https://httpbin.org/status/400?"
    },
    "require": {
      "enelogic/wpml-installer": "^0.1",
      "composer/installers": "^1.8||^2.0"
    }
  }
}

(trailing slash matters on that httpbin url)

And then require:

composer require wpml/wpml-multilingual-cms

or in composer.json, add this to require

"wpml/wpml-multilingual-cms": "*",

Then set up environment vars. You can find these by logging into WPML website and copy/pasting a download link for any of the plugins.

# .env

# subscription_id parameter on the url
WPML_KEY=
# user_id parameter on the url
WPML_USER_ID=

You should be all set - rinse and repeat for other WPML plugins - a fuller config is below for easier copy/paste.

More packages for easy copy/paste - edit the versions to whatever is current.

{
    "type": "package",
    "package": {
        "name": "wpml/wpml-multilingual-cms",
        "version": "4.4.12",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://httpbin.org/status/400?"
        },
        "require": {
          "enelogic/wpml-installer": "^0.1",
          "composer/installers": "^1.8||^2.0"
        }
    }
},
{
    "type": "package",
    "package": {
        "name": "wpml/wpml-string-translation",
        "version": "3.1.10",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://httpbin.org/status/400?"
        },
        "require": {
          "enelogic/wpml-installer": "^0.1",
          "composer/installers": "^1.8||^2.0"
        }
    }
},
{
    "type": "package",
    "package": {
        "name": "wpml/wpml-translation-management",
        "version": "2.10.8",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://httpbin.org/status/400?"
        },
        "require": {
          "enelogic/wpml-installer": "^0.1",
          "composer/installers": "^1.8||^2.0"
        }
    }
},
{
    "type": "package",
    "package": {
        "name": "wpml/wpml-media",
        "version": "2.6.5",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://httpbin.org/status/400?"
        },
        "require": {
          "enelogic/wpml-installer": "^0.1",
          "composer/installers": "^1.8||^2.0"
        }
    }
}

and requires:

"wpml/wpml-multilingual-cms": "*",
"wpml/wpml-string-translation": "*",
"wpml/wpml-translation-management": "*",
"wpml/wpml-media": "*",

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%