PHPackages                             mobaguides/mobile-legends-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. mobaguides/mobile-legends-api

ActiveLibrary

mobaguides/mobile-legends-api
=============================

An API Wrapper to fetch Mobile Legends Data

v1.2.0(5y ago)7836815[3 issues](https://github.com/mobaguides/mobile-legends-api/issues)[1 PRs](https://github.com/mobaguides/mobile-legends-api/pulls)MITPHPPHP &gt;=7.2.0CI failing

Since Jun 19Pushed 5y ago10 watchersCompare

[ Source](https://github.com/mobaguides/mobile-legends-api)[ Packagist](https://packagist.org/packages/mobaguides/mobile-legends-api)[ RSS](/packages/mobaguides-mobile-legends-api/feed)WikiDiscussions develop Synced 3d ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Mobile Legends API
==================

[](#mobile-legends-api)

This is an inofficial PHP API wrapper for the mobile game "Mobile Legends". Currently it supports fetching Heroes, Hero Details and Images.

Requirements
------------

[](#requirements)

This package requires &gt;= PHP 7.2. PHP 7.1 is supported in older versions of the package.

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

[](#installation)

`composer require mobaguides/mobile-legends-api`

Usage
-----

[](#usage)

### Factory

[](#factory)

Use the Factory to create `ApiFetcher` objects.

```
use MobaGuides\MobileLegendsApi\Fetchers\Hero;
use MobaGuides\MobileLegendsApi\Fetchers\Image;

MobileLegends::make(Hero::class);
```

### Fetchers

[](#fetchers)

Fetchers are Classes that extend `MobaGuides\MobileLegendsApi\Fetchers\ApiFetcher`. You can also create your own Fetchers and instantiate them through the factory. Just let them inherit from this class.

#### Fetch All Heroes

[](#fetch-all-heroes)

```
use MobaGuides\MobileLegendsApi\MobileLegends;
use MobaGuides\MobileLegendsApi\Fetchers\Hero;

$hero = MobileLegends::make(Hero::class);
var_dump($hero->all());
```

#### Fetch Hero Details

[](#fetch-hero-details)

```
use MobaGuides\MobileLegendsApi\MobileLegends;
use MobaGuides\MobileLegendsApi\Fetchers\Hero;

$hero = MobileLegends::make(Hero::class);
var_dump($hero->detail(1));
```

#### Find Image

[](#find-image)

The Image map is fetched one time only and calls on the same Image Fetcher instance will only make one HHTP request. Subsequent method calls on the same instance will use the cached image map.

```
use MobaGuides\MobileLegendsApi\MobileLegends;
use MobaGuides\MobileLegendsApi\Fetchers\Image;

$image = MobileLegends::make(Image::class);
var_dump($image->find('HeroHead001.png'));
```

#### Find Hero Profile Image

[](#find-hero-profile-image)

```
use MobaGuides\MobileLegendsApi\MobileLegends;
use MobaGuides\MobileLegendsApi\Fetchers\Image;

$image = MobileLegends::make(Image::class);
var_dump($image->heroAvatar(1)); // Hero Avatar of Miya
```

FAQ
---

[](#faq)

#### 1. How do I know the keys for the Image Fetcher?

[](#1-how-do-i-know-the-keys-for-the-image-fetcher)

Mobile Legends maps weird keys to the actual image URLs. You can get the map here:

#### 2. How can I fetch Equipment data?

[](#2-how-can-i-fetch-equipment-data)

Currently this is not supported as we could not find out the endpoint for equip details.

#### 3. What about Emblems, Map Data etc.?

[](#3-what-about-emblems-map-data-etc)

See above.

#### 4. Okay, and User data?

[](#4-okay-and-user-data)

We are currently working on this one and it should be released soon.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

5

Last Release

2171d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.1.0

v1.1.0PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b90017bd0e68c25076f2935600c867e4791c3feda8d599e43a9b0a75561d32c?d=identicon)[mobaguides](/maintainers/mobaguides)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mobaguides-mobile-legends-api/health.svg)

```
[![Health](https://phpackages.com/badges/mobaguides-mobile-legends-api/health.svg)](https://phpackages.com/packages/mobaguides-mobile-legends-api)
```

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[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)
