dark sky api:Dark Sky APIPHP库 源码
黑暗天空API 用于PHP库。 用法 通过Composer安装软件包: composer require dmitry-ivanov/dark-sky-api 使用DmitryIvanov\DarkSkyApi\DarkSkyApi类: use DmitryIvanov \ DarkSkyApi \ DarkSkyApi ; $ forecast = ( new DarkSkyApi ( 'secret-key' )) -> location ( 46.482 , 30.723 ) -> forecast ( 'daily' ); echo $ forecast -> daily ()-> summary (); 时光机要求 有时获取指定日期的天气可能很有用: $ timeMachine = ( new DarkSkyApi ( 'secret-key' ))
文件列表
dark-sky-api-master.zip
(预估有个40文件)
dark-sky-api-master
composer.json
2KB
src
functions.php
981B
Adapters
Laravel
config
dark-sky-api.php
2KB
DarkSkyApiServiceProvider.php
1KB
Facades
暂无评论