定制 mmd/google-webfonts-cache 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mmd/google-webfonts-cache

Composer 安装命令:

composer require mmd/google-webfonts-cache

包简介

'Unlimited' API Requests

README 文档

README

"Unlimited" API Requests.

Instead of

https://www.googleapis.com/webfonts/v1/webfonts?key=...

use

https://your-domain.com/webfonts/v1/webfonts

At the moment are supported only simple GET requests.

Install

  1. Install bundle with composer

    $ php composer.phar require "mmd/google-webfonts-cache":"dev-master" "sensio/buzz-bundle":"dev-master" "predis/predis":"dev-master"
  2. Include bundle in app/AppKernel.php

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

    mmd_google_webfonts_cache:
        resource: "@MmdGoogleWebfontsCacheBundle/Resources/config/routing.yml"
        prefix:   /webfonts
  4. Install Redis.

    You can use this dockerfile.

  5. Configure parameters in app/config/parameters.yml

    mmd_google_webfonts_cache.key: 'AIz...pWY'
    
    mmd_google_webfonts_cache.redis.scheme: 'tcp'
    mmd_google_webfonts_cache.redis.host: '127.0.0.1'
    mmd_google_webfonts_cache.redis.port: 6379
    mmd_google_webfonts_cache.redis.options: {} # https://github.com/nrk/predis#client-configuration

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-21