2017 © Pedro Peláez
 

library usgs

A wrapper for a better USGS api.

image

okierazorback/usgs

A wrapper for a better USGS api.

  • Tuesday, July 3, 2018
  • by OkieRazorback
  • Repository
  • 1 Watchers
  • 1 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

No Maintenance Intended, (*1)

A wrapper for the USGS API

This is a wrapper for the USGS API., (*2)

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();

The Versions

03/07 2018

dev-master

9999999-dev https://github.com/OkieRazorback/USGS

A wrapper for a better USGS api.

  Sources   Download

MIT

The Requires

 

usgs united states geological survey earthquake

10/01 2017

2.0.1

2.0.1.0 https://github.com/OkieRazorback/USGS

A wrapper for a better USGS api.

  Sources   Download

MIT

The Requires

 

usgs united states geological survey earthquake

01/08 2015

2.0.0

2.0.0.0 https://github.com/OkieRazorback/USGS

A wrapper for a better USGS api.

  Sources   Download

MIT

The Requires

 

usgs united states geological survey earthquake

10/05 2015

1.0.2

1.0.2.0 https://github.com/OkieRazorback/USGS

A wrapper for a better USGS api.

  Sources   Download

MIT

The Requires

 

usgs united states geological survey earthquake

10/05 2015

1.0.1

1.0.1.0 https://github.com/OkieRazorback/USGS

A wrapper for a better USGS api.

  Sources   Download

MIT

The Requires

 

usgs united states geological survey earthquake

27/04 2015

1.0.0

1.0.0.0 https://github.com/OkieRazorback/USGS

A wrapper for a better USGS api.

  Sources   Download

MIT

The Requires

 

usgs united states geological survey earthquake