okierazorback/usgs 问题修复 & 功能扩展

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

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

okierazorback/usgs

最新稳定版本:2.0.1

Composer 安装命令:

composer require okierazorback/usgs

包简介

A wrapper for a better USGS api.

README 文档

README

No Maintenance Intended

A wrapper for the USGS API

This is a wrapper for the USGS API.

A few examples

Get all 2.5 magnitude or greater quakes in the last hour

$earthQuake= new EarthQuake(new \GuzzleHttp\Client());

$quakes = $quake->getLastHour(2.5);

Get all 2.5 magnitude or greater quakes in the last 24 hours

$earthQuake= new EarthQuake(new \GuzzleHttp\Client());

$quakes = $quake->getLastTwentyFour(2.5);

Get all 2.5 magnitude or greater quakes in the last 30 days

$earthQuake= new EarthQuake(new \GuzzleHttp\Client());

$quakes = $quake->getLastThirtyDays(2.5);

Or build your own!

$earthQuake= new EarthQuake(new \GuzzleHttp\Client());

$quakes = $earthQuake
    ->setParams([
        'format' => 'geojson',
        'starttime' => Carbon::now('UTC')->subDays(30)->toIso8601String(),
        'endtime' => Carbon::now('UTC')->toIso8601String(),
        'minmagnitude' => 4
    ])
    ->getQuakes();

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-27