Download the PHP package yuesir/weather without Composer
On this page you can find all versions of the php package yuesir/weather. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package weather
weather
基于 高德开放平台的 PHP 天气信息组件.
安装
配置
在使用本扩展之前,你需要去 高德开发平台 注册账号
Usage
获取实时天气
示例
获取近期天气预报
示例
获取 XML 格式返回数据 第三个参数为返回值类型,可选 JSON 与 XML, 默认 JSON:
示例:
参数说明
$city - 城市名,比如 "深圳" $type - 返回类容类型: base 返回实况天气 / all: 返回预报天气 $format - 输出的内容格式,默认为 JSON 格式, 当 output 设置为 XML 时,输出的为 XML 格式的数据。
License
MIT
All versions of weather with dependencies
PHP Build Version
Package Version
Requires
guzzlehttp/guzzle Version
^6.3
The package yuesir/weather contains the following files
Loading the files please wait ....