PHPackages                             xitox97/laravel-opendota - 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. xitox97/laravel-opendota

ActiveLibrary[API Development](/categories/api)

xitox97/laravel-opendota
========================

Laravel PHP Facade/Wrapper for the OpenDota API

1.0.0(6y ago)2161[1 issues](https://github.com/xitox97/laravel-opendota/issues)MITPHPPHP ^7.2CI failing

Since Apr 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xitox97/laravel-opendota)[ Packagist](https://packagist.org/packages/xitox97/laravel-opendota)[ Docs](https://github.com/xitox97/laravel-opendota)[ RSS](/packages/xitox97-laravel-opendota/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Laravel-OpenDota
================

[](#laravel-opendota)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8c04dc104d270207a6090674637e1a796f972ebd8f75df2318e1faa04840deb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7869746f7839372f6c61726176656c2d6f70656e646f74612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xitox97/laravel-opendota)[![Total Downloads](https://camo.githubusercontent.com/a20d5de9b6c3d4aee173c78dcf67d51d09ea34c65158027040ebd5dd0b8fe059/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7869746f7839372f6c61726176656c2d6f70656e646f74612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xitox97/laravel-opendota)

Unofficial Laravel 7 PHP Facade/Wrapper for the OpenDota API

[![laravel-Opendota](https://user-images.githubusercontent.com/15958161/80275485-18007400-8714-11ea-8321-233bd258c6c9.png)](https://user-images.githubusercontent.com/15958161/80275485-18007400-8714-11ea-8321-233bd258c6c9.png)

Support
-------

[](#support)

- Laravel 7+
- OpenDota API (v18.0.0)

> All API endpoint supported except explorer and FindMatches

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

[](#installation)

You can install the package via composer:

```
composer require xitox97/laravel-opendota
```

API KEY Set up (Optional)
-------------------------

[](#api-key-set-up-optional)

Publish Laravel Opendota config by run below command, and replace the null value with your api-key.

```
php artisan vendor:publish --provider Xitox97\LaravelOpendota\LaravelOpendotaServiceProvider --tag="config"
```

Usage
-----

[](#usage)

Every function are return an instance of `Illuminate\Http\Client\Response`, Therefore you can use variety of method provided by [Laravel HTTP Client](https://laravel.com/docs/master/http-client). Check more function in [LaravelOpenDota](https://github.com/xitox97/laravel-opendota/blob/master/src/LaravelOpendota.php)

### Get player info without Parameter

[](#get-player-info-without-parameter)

```
$player = Opendota::getPlayer($player_id);
$player->json();
$player->body();
etc...
```

### Get player win lose with Parameter

[](#get-player-win-lose-with-parameter)

> Refer [OpenDota](https://docs.opendota.com) Documentation to know more about exact parameter supported for each endpoint

```
$playerWinLose = Opendota::getPlayerWL(311360822,['limit' => 1000])->json();
```

### Get match details

[](#get-match-details)

```
$player = Opendota::getMatch($match_id);
```

### Get players ordered by rank/medal tier

[](#get-players-ordered-by-rankmedal-tier)

```
$player = Opendota::getPlayersByRank();
```

### Get list of pro players

[](#get-list-of-pro-players)

```
$player = Opendota::getProPlayers();
```

### Get list of pro matches

[](#get-list-of-pro-matches)

```
$player = Opendota::proMatches();
```

### Get list of randomly sampled public matches

[](#get-list-of-randomly-sampled-public-matches)

```
$player = Opendota::publicMatches();
```

> To view more function just open the [LaravelOpenDota](https://github.com/xitox97/laravel-opendota/blob/master/src/LaravelOpendota.php) file. The function name is similar to OpenDota endpoint.

Credits
-------

[](#credits)

- [Muhammad Farhan Abdul Hadi](https://github.com/xitox97)

License
-------

[](#license)

Copyright © 2020 Farhan Hadi ()

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Total

5

Last Release

2208d ago

Major Versions

0.1.3 → 1.0.02020-04-25

PHP version history (2 changes)0.1.0PHP ^7.1

0.1.2PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15958161?v=4)[Farhan Hadi](/maintainers/xitox97)[@xitox97](https://github.com/xitox97)

---

Top Contributors

[![xitox97](https://avatars.githubusercontent.com/u/15958161?v=4)](https://github.com/xitox97 "xitox97 (13 commits)")

---

Tags

dota2-apilaravelopendotaopendota-apixitox97laravel-opendota

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xitox97-laravel-opendota/health.svg)

```
[![Health](https://phpackages.com/badges/xitox97-laravel-opendota/health.svg)](https://phpackages.com/packages/xitox97-laravel-opendota)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[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)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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