This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 10 replies, has 8 voices.

Last updated by benoitL-23 3 years, 8 months ago.

Assigned support staff: Shekhar Bhandari.

Author Posts
January 23, 2016 at 8:06 pm #794914

denisR-5

I am trying to:

Install wpml & wpml addons via composer

I expected to see:

composer require wpml

or something similar

Instead, I got:

Could not find package wpml...
January 24, 2016 at 11:43 am #794991

andreaD-16

How did you setup your repositories in composer.json?

You need to add something like this for each plugin:

{
      "type": "package",
      "package": {
        "name": "wpml/wpml-multilingual-cms",
        "version": "3.3.1",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
            "url": "https://wpml.org/?download=6088&user_id=YOUR_USERID&subscription_key=YOUR_SUBSCRIPTION_KEY"
        }
      }
    },
January 25, 2016 at 9:53 am #795353

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for contacting WPML support.

We do not support composer, since our plugins are premium.

Let me know if you need further assistance or have any questions.

Thanks

January 25, 2016 at 9:57 am #795361

andreaD-16

@shekhar I can tell you it works. Indeed I maintain WPML through composer by simply defining a repo as above. Alternatively you can download a package and maintain your own repo the same way. Same goes with other premium plugins out there.

January 27, 2016 at 10:47 am #797448

denisR-5

@andread-16 thanks!

But this feels like it could break anytime as they don't officially tell you about this.

@wpml: Will you consider using satis?
hidden link

hidden link (might also be worth a look, see roadmap)

Is installing wpml via composer something that's on wpml's roadmap?

January 27, 2016 at 10:59 am #797458

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

@andread-16

It can work, but we don't officially support installing wpml via composer.

@denisr-5

I'll send your suggestion to our developers.

I'm closing this topic, but your suggestion will be registered for our developers.

Thanks

April 4, 2018 at 3:11 pm #1565033

miguelF-2

I really hope this feature will be part of the wpml core soon because from the date of the original post until now many months have passed.

There are many other premium plugin developers that have integrated composer support.

{
  "type": "package",
  "package": {
    "name": "advanced-custom-fields/advanced-custom-fields-pro",
    "version": "5.3.9.2",
    "type": "wordpress-plugin",
    "dist": {
      "type": "zip",
      "url": "[REPLACE_WITH_YOUR_UNIQUE_URL]"
    }
  }
}

So I don't know what is keeping wpml team unwilling to provide us with this simple and comfortable solution.

Hope to hear from you guys soon.
Regards

January 3, 2019 at 9:19 am #3051709

sergio

I agree, it's a modern development practice to use composer for dependencies, and I would expect to be able to use it for both premium and open source packages.

July 5, 2019 at 9:25 am #4149541

tobiasG-9

Yes, I also still want this! @wpml team: You might wanna talk to Deliciousbrains, these guys have done a fantastic job with the composer support for premium plugins. Seriously, it's 2019, please finally implement this!

July 11, 2019 at 8:39 pm #4193059

alexanderR-24

Here is a good description on how to configure composer.json for Bedrock/Trellis:
hidden link

September 25, 2019 at 2:13 pm #4639733

benoitL-23

Hi is composer installation supported yet?

it is pretty astounding that a $80 premium plugin still does not support composer installation.

As said above managing dependencies through composer is part of modern development best practice.
It would be a petty to loose a commercial edge because there is no easy way to add the plugin through composer.