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' ))
用户评论