jb/api-yahoo-weather-bundle

用于SYmfony2的一个包,通过jb/api-yahoo-weather从Yahoo API获取天气信息

安装: 205

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:symfony-bundle

1.3.2 2014-11-10 14:48 UTC

This package is not auto-updated.

Last update: 2024-09-24 04:12:24 UTC


README

##用户指南(beta)##

    jb_api_yahoo_weather:
        woeid: 123456
        unit: c
        
    aequasi_cache:
        instances:
            jb_api_yahoo_weather:
              persistent: false # Boolean or persistent_id
              namespace: jayw
              type: memcached
              hosts:
                  - { host: localhost, port: 11211 }
    "fabpot/goutte": "~2.0",
    "aequasi/cache-bundle": "dev-master"

当使用memcached时,你可以在HTTP响应头中看到日期是否来自API或缓存。关键字是api-weather-hit-cache