PHPackages                             fourclub/tron-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. fourclub/tron-api

ActiveLibrary[API Development](/categories/api)

fourclub/tron-api
=================

PHP API for interacting with Tron (Trx)

1.0.0(3y ago)119MITPHPPHP ^7.4

Since Feb 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/fourclub/tron-api)[ Packagist](https://packagist.org/packages/fourclub/tron-api)[ Docs](https://github.com/fourclub/tron-api)[ RSS](/packages/fourclub-tron-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

TRON API
========

[](#tron-api)

PHP 7.4 API for interacting with the Tron Protocol

---

#### fork

[](#fork-httpsgithubcomiexbasetron-api)

- added the setFeeLimit() method in PHP 7.4 support

Example: /examples/send-transaction USDT-TRC20.php

---

Install
-------

[](#install)

```
> composer require fourclub/tron-api
```

Requirements
------------

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 7.4

Example Usage
-------------

[](#example-usage)

```
use fourclub\TronAPI\Tron;
use fourclub\TronAPI\Provider\HttpProvider;
use fourclub\TronAPI\Exception\TronException;

$fullNode = new HttpProvider('https://api.trongrid.io');
$solidityNode = new HttpProvider('https://api.trongrid.io');
$eventServer = new HttpProvider('https://api.trongrid.io');

try {
    $tron = new Tron($fullNode, $solidityNode, $eventServer);
} catch (TronException $e) {
    exit($e->getMessage());
}

$this->setAddress('..');
//Balance
$tron->getBalance(null, true);

// Transfer Trx
var_dump($tron->send('to', 1.5));

//Generate Address
var_dump($tron->createAccount());

//Get Last Blocks
var_dump($tron->getLatestBlocks(2));

//Change account name (only once)
var_dump($tron->changeAccountName('address', 'NewName'));

// Contract
$tron->contract('Contract Address');

```

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

1213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf67dc323f02854acc251b705c9d3442378ca228122a771db359c3098aa99b8c?d=identicon)[fourclub](/maintainers/fourclub)

---

Top Contributors

[![fourclub](https://avatars.githubusercontent.com/u/6304915?v=4)](https://github.com/fourclub "fourclub (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fourclub-tron-api/health.svg)

```
[![Health](https://phpackages.com/badges/fourclub-tron-api/health.svg)](https://phpackages.com/packages/fourclub-tron-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[iexbase/tron-api

A PHP API for interacting with Tron (Trx)

435144.3k8](/packages/iexbase-tron-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)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

1210.4k6](/packages/hardcastle-xrpl-php)

PHPackages © 2026

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