junaidbhura / composer-wp-pro-plugins

Composer installer for Pro WordPress plugins.
https://packagist.org/packages/junaidbhura/composer-wp-pro-plugins
MIT License
91 stars 28 forks source link

Download URL for ACFPro change #71

Open Spidlace opened 2 months ago

Spidlace commented 2 months ago

Hi there,

I understand that this package has been taken over by @mcaskill. If the idea is mainly to be able to update the download URLs for the various plugins, I've had a problem for some time with the ACF Pro download URL.

It's changed, so I've proposed a pull request here : https://github.com/junaidbhura/composer-wp-pro-plugins/pull/70 ;-)

Thanks

mcaskill commented 2 months ago

I recently contacted ACF Pro's vendor (WPEngine, at the time of writing). Important changes have occurred and more are in the works:

  1. The URL for the ACF Pro example (/index.php?p=pro&a=download&k=***&t=X.Y.Z) is obsolete.
  2. The new URL (/v2/plugins/download?p=pro&k=***&t=X.Y.Z) does not work with Composer (because the server checks the User-Agent for Composer for its Composer repository).
  3. In the coming months, the vendor is changing its API to use server generated single-use URLs.
  4. Even the URLs from the official Composer repository (/v2/plugins/composer_download?p=pro&t=X.Y.Z) will eventually adopt single-use URLs.

I would recommend abandoning support for ACF Pro in favour of ACF’s official support for Composer.