mmd/github-api-cache 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mmd/github-api-cache

Composer 安装命令:

composer require mmd/github-api-cache

包简介

'Unlimited' API Requests

README 文档

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

  1. Install bundle with composer

    $ 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

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

    mmd_mc_monitor:
        resource: "@MmdGithubApiCacheBundle/Resources/config/routing.yml"
        prefix:   /
  4. Install Redis.

    You can use this dockerfile.

  5. 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

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-06