mmd / github-api-cache
'Unlimited' API Requests
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
- predis/predis: dev-master
- sensio/buzz-bundle: dev-master
This package is not auto-updated.
Last update: 2025-03-29 18:49:02 UTC
README
"Unlimited" API Requests.
Instead of
https://api.github.com/repos/twbs/bootstrap/releases
use
https://your-domain.com/repos/twbs/bootstrap/releases
At the moment are supported only simple GET requests.
Install
-
Install bundle with composer
$ php composer.phar require "mmd/github-api-cache":"dev-master" "sensio/buzz-bundle":"dev-master" "predis/predis":"dev-master"
-
Include bundle in
app/AppKernel.php
$bundles = array( ... new Mmd\Bundle\GithubApiCacheBundle\MmdGithubApiCacheBundle(), new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(), );
-
Include bundle's routing in
app/config/routing.yml
mmd_mc_monitor: resource: "@MmdGithubApiCacheBundle/Resources/config/routing.yml" prefix: /
-
Install Redis.
You can use this dockerfile.
-
Configure parameters in
app/config/parameters.yml
mmd_github_api_cache.token: '189...b51' mmd_github_api_cache.redis.scheme: 'tcp' mmd_github_api_cache.redis.host: '127.0.0.1' mmd_github_api_cache.redis.port: 6379 mmd_github_api_cache.redis.options: {} # https://github.com/nrk/predis#client-configuration