PHPackages                             okierazorback/usgs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. okierazorback/usgs

AbandonedArchivedLibrary[API Development](/categories/api)

okierazorback/usgs
==================

A wrapper for a better USGS api.

2.0.1(9y ago)132[1 issues](https://github.com/OkieRazorback/USGS/issues)MITPHPPHP &gt;=5.4.0

Since Apr 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/OkieRazorback/USGS)[ Packagist](https://packagist.org/packages/okierazorback/usgs)[ Docs](https://github.com/OkieRazorback/USGS)[ RSS](/packages/okierazorback-usgs/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

A wrapper for the USGS API
==========================

[](#a-wrapper-for-the-usgs-api)

This is a wrapper for the [USGS API](http://earthquake.usgs.gov/fdsnws/event/1/ "United States Geological Survey").

A few examples
--------------

[](#a-few-examples)

### Get all 2.5 magnitude or greater quakes in the last hour

[](#get-all-25-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

[](#get-all-25-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

[](#get-all-25-magnitude-or-greater-quakes-in-the-last-30-days)

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

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

```

### Or build your own!

[](#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();

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~156 days

Total

5

Last Release

3438d ago

Major Versions

1.0.2 → 2.0.02015-08-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2d1a9f916d245b6c3caedcdf88677fdf3717028b439584df77cff886adcc467?d=identicon)[OkieRazorback](/maintainers/OkieRazorback)

---

Tags

USGSUnited States Geological SurveyEarthquake

### Embed Badge

![Health badge](/badges/okierazorback-usgs/health.svg)

```
[![Health](https://phpackages.com/badges/okierazorback-usgs/health.svg)](https://phpackages.com/packages/okierazorback-usgs)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k532.1M19.2k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M901](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3751.2M45](/packages/tencentcloud-tencentcloud-sdk-php)[smodav/mpesa

M-Pesa API implementation

16167.1k1](/packages/smodav-mpesa)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
