ffraenz / private-composer-installer

Composer install helper outsourcing sensitive keys from the package URL into environment variables
MIT License
227 stars 16 forks source link

wpml #18

Closed jnz31 closed 4 years ago

jnz31 commented 4 years ago

i found you mention the option to install wpml as well, but i'm not sure what i am doing wrong here (the name attribute is a guessing by me, not sure if it is correct or if it needs to be something else..?, the url and parameters i grabbed from my wpml account):

    {
      "type": "package",
      "package": {
        "name": "wpml/sitepress-multilingual-cms",
        "version": "4.3.11",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://wpml.org/?download={%PLUGIN_WPML_DOWNLOAD}&user_id={%PLUGIN_WPML_USER_ID}&subscription_key={%PLUGIN_WPML_SUBSCRIPTION_KEY}&t=1585915805&version={%VERSION}"
        },
        "require": {
          "ffraenz/private-composer-installer": "^4.0"
        }
      }
    }

and in my .env file i replace the variables via

PLUGIN_WPML_DOWNLOAD=xxx
PLUGIN_WPML_USER_ID=yyy
PLUGIN_WPML_SUBSCRIPTION_KEY=zzz

plus how would you go on and install the other wpml plugins, like string-translation etc..? can you help?

ffraenz commented 4 years ago

Indeed, in older versions of the README I mentioned how to install WPML packages with private-composer-installer. I don't know if this does still applies or if WPML changed something on their end.

You didn't specify the exact problem you encountered? What did go wrong?

jnz31 commented 4 years ago

thanks @ffraenz for the headsup. i gave it another shot and and realized, i made an error. i expected composer to install the missing plugin on composer update, whilst i forgot about the composer require xyz call. not sure why, but terminal (zsh) was throwing an error, when also submitting the version via asterisk. i had to wrap it in quotes, to make it work: zsh: no matches found: wpml/wpml-multilingual-cms: `composer require wpml/wpml-multilingual-cms:""` works fine