title: Get package latest version from packagist.org
body: <p>I'm trying to get the latest stable version for composer packages from packagist.org, for example <a href="https://packagist.org/packages/doctrine/cache" rel="nofollow">https://packagist.org/packages/doctrine/cache</a>.</p>
  
  <p>The best way i found is to get a json response using <a href="https://packagist.org/packages/doctrine/cache.json" rel="nofollow">https://packagist.org/packages/doctrine/cache.json</a>, but since i consume it using javascript i blocked by cross domain restriction.</p>
  
  <p>Any ideas ?</p>