PHPackages                             refatbd/laravel-free-fire - 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. refatbd/laravel-free-fire

ActiveLibrary

refatbd/laravel-free-fire
=========================

Laravel integration for refatbd/free-fire-php.

v1.0.0(today)001MITPHPPHP ^8.2

Since Jul 27Pushed todayCompare

[ Source](https://github.com/refatbd/laravel-free-fire)[ Packagist](https://packagist.org/packages/refatbd/laravel-free-fire)[ RSS](/packages/refatbd-laravel-free-fire/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (9)Versions (2)Used By (1)

refatbd/laravel-free-fire
=========================

[](#refatbdlaravel-free-fire)

Laravel integration package for the Free Fire player information &amp; official ASTC media rendering engine.

> **Generated distribution repository:** development happens in `refatbd/free-fire-php-monorepo`. Do not edit the split repository directly.

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

[](#installation)

```
composer require refatbd/laravel-free-fire
php artisan vendor:publish --tag=freefire-config
php artisan freefire:media-check
```

Basic Usage
-----------

[](#basic-usage)

```
use Refatbd\LaravelFreeFire\Facades\FreeFire;

// Retrieve player information (JSON array)
$player = FreeFire::player('4422076728', 'BD');

// Access basic info and ranks
echo $player['basicInfo']['nickname']; // ᴛᴀʙᴀꜱꜱᴜᴍ♡ʀ
echo $player['basicInfo']['level'];    // 67
```

Diagnostic &amp; Media Capability Checker
-----------------------------------------

[](#diagnostic--media-capability-checker)

Run the built-in Artisan diagnostic command to verify ASTC decoding and WebP media capability on your server:

```
php artisan freefire:media-check
```

### Server Requirements &amp; Media Engine Guidance

[](#server-requirements--media-engine-guidance)

Platform / Server TypeRecommended Setup**Ubuntu / Debian / VPS**`sudo apt update && sudo apt install astc-encoder`**cPanel / Shared Hosting**Leave `FREEFIRE_ASTCENC_BINARY=astcenc`; the core package auto-detects the bundled Linux decoder when `proc_open` is enabled**Windows Server / Local**Leave `FREEFIRE_ASTCENC_BINARY=astcenc`; the core package auto-detects the bundled Windows decoder> **Graceful Fallback Note:** If `proc_open` is disabled or `astcenc` is missing on cheap shared hosting, player statistics and JSON API endpoints **continue to work 100% reliably**. Media rendering automatically degrades to PHP GD gradient graphics without crashing.

Protocol &amp; Configuration
----------------------------

[](#protocol--configuration)

```
FREEFIRE_ENABLED=true
FREEFIRE_DEFAULT_REGION=BD
FREEFIRE_PROTOCOL=OB54
FREEFIRE_ASTCENC_BINARY=astcenc
```

API Routes
----------

[](#api-routes)

- `GET /api/free-fire/v1/health`
- `GET /api/free-fire/v1/players/{uid}?region=BD`
- `GET /api/free-fire/v1/players/{uid}/avatar?region=BD`
- `GET /api/free-fire/v1/players/{uid}/banner?region=BD&raw=1` (Clean background mode)
- `GET /api/free-fire/v1/players/{uid}/banner?region=BD` (Composited banner graphic mode)

### Legacy Compatibility Routes

[](#legacy-compatibility-routes)

- `GET /player-info?uid={uid}&region={region}`
- `GET /api/avatar/avatar_{uid}.webp`
- `GET /api/banner/banner_{uid}.webp`

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45603608?v=4)[Refat Rahman](/maintainers/refatbd)[@refatbd](https://github.com/refatbd)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")[![refatbd](https://avatars.githubusercontent.com/u/45603608?v=4)](https://github.com/refatbd "refatbd (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/refatbd-laravel-free-fire/health.svg)

```
[![Health](https://phpackages.com/badges/refatbd-laravel-free-fire/health.svg)](https://phpackages.com/packages/refatbd-laravel-free-fire)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M348](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M186](/packages/laravel-mcp)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M137](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M134](/packages/roots-acorn)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k96.5k1](/packages/mike-bronner-laravel-model-caching)

PHPackages © 2026

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