Caching of composer dependencies


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 $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:// page is inaccurate

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.


see this conversation for more on composer caching Caching composer dependencies