Caching of composer dependencies


#1

Those who build with composer are likely to encounter Github rate limiting. The workaround is twofold:

  1. Cache any vendor directories manually using the cache_directories circle.yml node.
  2. Update composer to use an oAuth key: composer config -g github-oauth.github.com $YOURKEY

To prevent the need for this manual intervention, I’d like to request a new feature where CircleCI adds composer vendor directories to the auto-cached dependency manager list.


Https://circleci.com/docs/composer-api-rate-limit page is inaccurate
#2

Another option would be to access the dependency repositories through SSH instead of HTTPS—the deploy key that is added for CircleCI to check out the repository on setup is also valid for all public projects on GitHub, and authenticated access is less rate-limited than unauthenticated clones.


#3

see this conversation for more on composer caching Caching composer dependencies


#4