PHPackages                             ge-tracker/osrs-api - 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. ge-tracker/osrs-api

ActiveLibrary[API Development](/categories/api)

ge-tracker/osrs-api
===================

Interacts with the official OSRS API

v2.0.2(3y ago)13.0k1MITPHPPHP ^8.0

Since May 1Pushed 3y agoCompare

[ Source](https://github.com/ge-tracker/osrs-api)[ Packagist](https://packagist.org/packages/ge-tracker/osrs-api)[ Docs](https://github.com/ge-tracker/osrs-api)[ RSS](/packages/ge-tracker-osrs-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (13)Used By (0)

OSRS API
========

[](#osrs-api)

This package is a Laravel/PHP wrapper for the OSRS API, to easily interact with the Grand Exchange and Hiscore APIs.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ge-tracker/osrs-api
```

If you wish to publish the package's configuration, you can run the following command:

```
php artisan vendor:publish --provider="GeTracker\OsrsApi\OsrsApiServiceProvider"
```

Usage
-----

[](#usage)

We recommend using this package via dependency injection in your methods, as this is a cleaner interface than a facade.

### Accessing the Grand Exchange API

[](#accessing-the-grand-exchange-api)

```
public function execute(OsrsApi $osrsApi)
{
    $item = $osrsApi->ge()->itemDetail(13576);
    echo $item->id . ': ' . $item->name;
}
```

### Fetching hiscores

[](#fetching-hiscores)

All requests to the hiscores are cached for 60 seconds by default.

```
public function execute(OsrsApi $osrsApi)
{
    $hiscores = $osrsApi->hiscores()->fetch('Lynx Titan');

    echo 'Attack: ' . $hiscores->stats->attack->level;
}
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [GE Tracker](https://github.com/ge-tracker)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~94 days

Recently: every ~152 days

Total

12

Last Release

1170d ago

Major Versions

v1.2.2 → v2.0.02022-02-09

PHP version history (4 changes)v1.0.0PHP ^7.1

v1.0.1PHP ^7.4

v1.2.2PHP ^7.4|^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e2a5e45322004ebc65fcfc1b13bb0a51bb3a0f75cd97dbe33b1cbb3bca74681?d=identicon)[gtjamesa](/maintainers/gtjamesa)

---

Top Contributors

[![gtjamesa](https://avatars.githubusercontent.com/u/2078364?v=4)](https://github.com/gtjamesa "gtjamesa (18 commits)")

---

Tags

hiscoresosrsosrs-apige-trackerrunescapeosrs-apioldschool runescapeold school runescape

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ge-tracker-osrs-api/health.svg)

```
[![Health](https://phpackages.com/badges/ge-tracker-osrs-api/health.svg)](https://phpackages.com/packages/ge-tracker-osrs-api)
```

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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