1. Go to this page and download the library: Download smmtglux/smm-api 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/ */
smmtglux / smm-api example snippets
use Tglux\Smm\Client;
$smm = new Client('YOUR-API-KEY'); // https://smmtglux.com by default
$smm = new Client('YOUR-API-KEY', 'https://another.panel/api/v2'); // or any other panel
$balance = $smm->balance(); // ['balance' => '25.0', 'currency' => 'USD']
$services = $smm->services(); // the whole catalogue
$order = $smm->add(1706, 'https://t.me/yourchannel/12', 1000);
$status = $smm->status($order); // ['status' => 'In progress', 'remains' => '1000', ...]
$smm = new Client($key, Client::DEFAULT_ENDPOINT, 30, function ($url, $fields, $timeout) {
return $myPsr18Client->send(/* ... */)->getBody()->getContents();
});
bash
php tests/run.php # 18 cases, no network, no dependencies
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.