I'm trying to get the latest stable version for composer packages from packagist.org, for example https://packagist.org/packages/doctrine/cache.
The best way i found is to get a json response using https://packagist.org/packages/doctrine/cache.json, but since i consume it using javascript i blocked by cross domain restriction.
Any ideas ?
The easiest way to get around cross domain restrictions is to set up a server-side proxy for the service on your local domain.
You could make it even easier on yourself by doing the processing for the latest version on your server, then just sending that to the client instead of the whole response.