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. [API Development](/categories/api)
4. /
5. mobaguides/mobile-legends-api

ActiveLibrary[API Development](/categories/api)

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

An API Wrapper to fetch Mobile Legends Data

v1.2.0(6y 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 6y 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 2w 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 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

2217d ago

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

v1.1.0PHP &gt;=7.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52009713?v=4)[mobaguides](/maintainers/mobaguides)[@mobaguides](https://github.com/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

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

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

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

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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