tamarillo/weather 问题修复 & 功能扩展

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

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

tamarillo/weather

最新稳定版本:v0.2

Composer 安装命令:

composer create-project tamarillo/weather

包简介

An OpenWeatherMap API helper for PHP.

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Helper classes for OpenWeatherMap.

This package was once part of the Dengo Framework. Now it's available on the Tamarillo projects.

###Examples

<?php

// Composer Autoloader
require_once 'vendor/autoload.php';

// The Location for Stuttgart, Germany
$weather = Tamarillo\Weather\Weather::getWeather([ 48.782318, 9.17702 ];

echo $wether->weather()->id();    // The ID of the current weather

echo $wether->city();             // The name of the City
echo $wether->city()->id();       // The ID of the City
var_dump($wether->geo());         // An array of the coordinations of the City

echo $wether->weather();          // The current weather description
echo $wether->weather()->icon();  // The current weather icon

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-25