{"id":15481684,"url":"https://github.com/lucguerraz/wpml-installer","last_synced_at":"2025-04-22T15:24:58.168Z","repository":{"id":65211739,"uuid":"587391388","full_name":"lucguerraz/wpml-installer","owner":"lucguerraz","description":"A composer plugin to make installing wpml.org plugins with composer easy. Your subscription info will be read from environment variables, will only be transmitted to WPML and will not be displayed in composer.lock","archived":false,"fork":false,"pushed_at":"2023-01-12T01:12:54.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-19T05:17:02.887Z","etag":null,"topics":["composer","multilang","wordpress","wp","wpml"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/lucguerraz/wpml-installer","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucguerraz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-10T16:36:51.000Z","updated_at":"2024-09-26T13:06:21.000Z","dependencies_parsed_at":"2023-01-15T15:15:42.783Z","dependency_job_id":null,"html_url":"https://github.com/lucguerraz/wpml-installer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucguerraz%2Fwpml-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucguerraz%2Fwpml-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucguerraz%2Fwpml-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucguerraz%2Fwpml-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucguerraz","download_url":"https://codeload.github.com/lucguerraz/wpml-installer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265728,"owners_count":21402162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","multilang","wordpress","wp","wpml"],"created_at":"2024-10-02T05:05:33.782Z","updated_at":"2025-04-22T15:24:58.127Z","avatar_url":"https://github.com/lucguerraz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPML Installer for composer\nA composer plugin to make installing [wpml.org](https://wpml.org) plugins with composer easy.\nYour subscription info will be read from environment variables or from a `.env` file, will only be transmitted to WPML and will not be displayed in `composer.lock`.\n\nThis composer plugin does not provide any WPML code. The WPML plugins will be downloaded directly from wpml.org\n\n## Usage\n\n#### 1. Add our [composer repository for WPML packages](https://github.com/lucguerraz/wpml-packages) to the `repositories` section of your `composer.json` file or define the packages ad-hoc\n```\n{\n  \"type\": \"composer\",\n  \"url\": \"https://lucguerraz.github.io/wpml-packages/\"\n}\n```\nThis installs the package as `wordpress-plugin` type and requires [`composer/installers`](https://packagist.org/packages/composer/installers), so you can install the plugins in the correct location.\n\nThis repository provides the latest versions of the WPML plugins. If you want a specific version you can define the packages ad-hoc and just require `lucguerraz/wpml-installer`. A little bit like this:\n\n```\n{\n  \"type\": \"package\",\n  \"package\": {\n    \"name\": \"wpml/sitepress-multilingual-cms\",\n    \"version\": \"1.0.0\",\n    \"type\": \"wordpress-plugin\",\n    \"dist\": {\n        \"type\": \"zip\",\n        \"url\": \"https://wpml.org/?download=6088\u0026version=1.0.0\"\n    },\n    \"require\": {\n        \"lucguerraz/wpml-installer\": \"^1.0\",\n        \"composer/installers\": \"~1.0\"\n    }\n  }\n}\n```\nWhen you request an older version you must be sure than WPML still provides a download otherwise this won't work\n\n### 2. Save your WPML user id and subscription key to environment variables or to a `.env` file\n\nWe do not provide any WPML code, the plugins are downloaded directly from WPML servers. Because of this we need your WPML subscription info to be able to download them. Your subscription info is stored in environment variables or a `.env` file, is only transmitted to WPML and will not show up in `composer.lock`.\n\nYou can get your user id and subscription key from a WPML provided download link, that you can get from your [WPML dashboard](https://wpml.org/account/downloads/). It will look like this:\n`https://wpml.org/?download=6088\u0026user_id=XXXXX\u0026subscription_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\u0026version=4.5.14`\n\n#### Using environment variables\nSave the `user_id` parameter in the `WPML_USER_ID` environment variable and the `subscription_key` parameter in the `WPML_SUBSCRIPTION_KEY` environment variable.\n\n#### Using a `.env` file\nAdd the `user_id` parameter with the `WPML_USER_ID` key and the `subscription_key` parameter with the `WPML_SUBSCRIPTION_KEY` key to your `.env` file. The `.env` file must be in the same directory as your `composer.json` file for it work.\n\n### 3. Require a WPML plugin\n\n`composer require wpml/sitepress-multilingual-cms`\n\n## Acknowledgments\n\nThis composer plugin was created to add support to installing WPML with composer v2. It was heavily inspired by [`pernod-ricard-brandcos/wpml-installer`](https://bitbucket.org/pernod-ricard-brandcos/wpml-installer) and [`enelogic/wpml-installer`](https://github.com/enelogic/wpml-installer).\n\n## Disclaimer\n\nThis project is not affiliated with WPML in any way, we do not provide any WPML code, all plugins are directly downloaded from wpml.org, your subscription info will be injected dynamically into the download link, your subscription info will only be transmitted to WPML and will not be displayed in `composer.lock`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucguerraz%2Fwpml-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucguerraz%2Fwpml-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucguerraz%2Fwpml-installer/lists"}