文件名称:dark-sky-api:Dark Sky APIPHP库
文件大小:3.43MB
文件格式:ZIP
更新时间:2024-03-24 00:36:34
api php weather laravel dark-sky
黑暗天空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
----composer.json(2KB)
----src()
--------functions.php(981B)
--------Adapters()
--------Validation()
--------Http()
--------Parameters.php(4KB)
--------Weather()
--------Service.php(4KB)
--------Parameters()
--------Contracts()
--------DarkSkyApi.php(286B)
----doc()
--------img()
----LICENSE.md(1KB)
----README.md(3KB)