PHP code example of refatbd / laravel-free-fire
1. Go to this page and download the library: Download refatbd/laravel-free-fire library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
refatbd / laravel-free-fire example snippets
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
bash
composer vendor:publish --tag=freefire-config
php artisan freefire:media-check
bash
php artisan freefire:media-check