2017 © Pedro Peláez
 

symfony-bundle github-api-cache

'Unlimited' API Requests

image

mmd/github-api-cache

'Unlimited' API Requests

  • Tuesday, June 2, 2015
  • by moldcraft
  • Repository
  • 0 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Github API Cache

"Unlimited" API Requests., (*1)

Instead of, (*2)

https://api.github.com/repos/twbs/bootstrap/releases

use, (*3)

https://your-domain.com/repos/twbs/bootstrap/releases

At the moment are supported only simple GET requests., (*4)

Install

  1. Install bundle with composer, (*5)

    $ php composer.phar require "mmd/github-api-cache":"dev-master" "sensio/buzz-bundle":"dev-master" "predis/predis":"dev-master"
    
  2. Include bundle in app/AppKernel.php, (*6)

    $bundles = array(
        ...
        new Mmd\Bundle\GithubApiCacheBundle\MmdGithubApiCacheBundle(),
        new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
    );
    
  3. Include bundle's routing in app/config/routing.yml, (*7)

    mmd_mc_monitor:
        resource: "@MmdGithubApiCacheBundle/Resources/config/routing.yml"
        prefix:   /
    
  4. Install Redis., (*8)

    You can use this dockerfile., (*9)

  5. Configure parameters in app/config/parameters.yml, (*10)

    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
    

The Versions

02/06 2015

dev-master

9999999-dev https://github.com/MmdBundles/GithubApiCacheBundle

'Unlimited' API Requests

  Sources   Download

MIT

The Requires

 

by Avatar moldcraft

api cache github github api