PHP code example of bulgarianhealer / apex-legends-php

1. Go to this page and download the library: Download bulgarianhealer/apex-legends-php 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/ */

    

bulgarianhealer / apex-legends-php example snippets




// Pull in library
s\Client();

$client->login('[email protected]', 'p@55w0rd');

// This users method will return an array of users that were returned from the search query API.
// You can enumerate over multiple users this way if you'd like.
$user = $client->users('SpikedPuddinPops')[0];

// Pass the platform as a string. In this case, use PC for PC stats.
var_dump($user->stats('PC'));

$user = $client->user(4421126145254737307);

// Pass the platform as a string. In this case, use PS4 for PS4 stats.
var_dump($user->stats('PS4'));

$user = $client->user(2535413617198328);

// Pass the platform as a string. In this case, use X1 for XBOX stats.
var_dump($user->stats('X1'));