dev-master
9999999-dev https://github.com/MmdBundles/GoogleWebfontsCacheBundle'Unlimited' API Requests
MIT
The Requires
by moldcraft
api cache google fonts google webfonts api
'Unlimited' API Requests
"Unlimited" API Requests., (*1)
Instead of, (*2)
https://www.googleapis.com/webfonts/v1/webfonts?key=...
use, (*3)
https://your-domain.com/webfonts/v1/webfonts
At the moment are supported only simple GET requests., (*4)
Install bundle with composer, (*5)
$ php composer.phar require "mmd/google-webfonts-cache":"dev-master" "sensio/buzz-bundle":"dev-master" "predis/predis":"dev-master"
Include bundle in app/AppKernel.php
, (*6)
$bundles = array( ... new Mmd\Bundle\GoogleWebfontsCacheBundle\MmdGoogleWebfontsCacheBundle(), new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(), );
Include bundle's routing in app/config/routing.yml
, (*7)
mmd_google_webfonts_cache: resource: "@MmdGoogleWebfontsCacheBundle/Resources/config/routing.yml" prefix: /webfonts
Install Redis., (*8)
You can use this dockerfile., (*9)
Configure parameters in app/config/parameters.yml
, (*10)
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
'Unlimited' API Requests
MIT
api cache google fonts google webfonts api