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

ActiveLibrary[API Development](/categories/api)

aqjw/tron-api
=============

A PHP API for interacting with Tron (Trx)

v5.1.2(1y ago)03MITPHPPHP &gt;=8.0

Since Mar 4Pushed 1y agoCompare

[ Source](https://github.com/aqjw/tron-api)[ Packagist](https://packagist.org/packages/aqjw/tron-api)[ Docs](https://github.com/iexbase/tron-api)[ RSS](/packages/aqjw-tron-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

TRON API
========

[](#tron-api)

A PHP API for interacting with the Tron Protocol

[![Latest Stable Version](https://camo.githubusercontent.com/7bce0b2ca537decb4ecbe6263b49a33f3f087dfeec4c5690b2020c8cd1fb3c7f/68747470733a2f2f706f7365722e707567782e6f72672f61716a772f74726f6e2d6170692f76657273696f6e)](https://packagist.org/packages/aqjw/tron-api)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/d67998fad68518e27265a77c6cda1420fc0ded9705e723eddbc31f4fe8173d78/68747470733a2f2f6170692e7472617669732d63692e636f6d2f61716a772f74726f6e2d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/aqjw/tron-api)[![Contributors](https://camo.githubusercontent.com/4b477005ed9966122f58a72ecf6bb80ee2666fee360a13fa5e6e37668e61827a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f61716a772f74726f6e2d6170692e737667)](https://github.com/aqjw/tron-api/graphs/contributors)[![Total Downloads](https://camo.githubusercontent.com/4b0b398f203fd5255bf79fdb3afd61bc9ba47d25b851f8972544f691d1076557/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61716a772f74726f6e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aqjw/tron-api)

Install
-------

[](#install)

```
composer require aqjw/tron-api
```

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

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 7.4

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

[](#example-usage)

```
use IEXBase\TronAPI\Tron;

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

try {
    $tron = new \IEXBase\TronAPI\Tron($fullNode, $solidityNode, $eventServer);
} catch (\IEXBase\TronAPI\Exception\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
```

Donations
---------

[](#donations)

**Tron(TRX)**: TRWBqiqoFZysoAeyR1J35ibuyc8EvhUAoY

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance44

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

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

Every ~0 days

Total

3

Last Release

440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3bbc50eee573168342cf8eaa53bcc09048939b7dc4bb79187133c919ce6e1e8b?d=identicon)[aqjw](/maintainers/aqjw)

---

Top Contributors

[![serderovsh](https://avatars.githubusercontent.com/u/24723913?v=4)](https://github.com/serderovsh "serderovsh (248 commits)")[![1099511627776](https://avatars.githubusercontent.com/u/2117414?v=4)](https://github.com/1099511627776 "1099511627776 (19 commits)")[![kaankozan](https://avatars.githubusercontent.com/u/38933295?v=4)](https://github.com/kaankozan "kaankozan (9 commits)")[![aqjw](https://avatars.githubusercontent.com/u/13101908?v=4)](https://github.com/aqjw "aqjw (7 commits)")[![sharifzadesina](https://avatars.githubusercontent.com/u/205923701?v=4)](https://github.com/sharifzadesina "sharifzadesina (3 commits)")[![sashabeton](https://avatars.githubusercontent.com/u/23243361?v=4)](https://github.com/sashabeton "sashabeton (2 commits)")[![dogdev](https://avatars.githubusercontent.com/u/4762407?v=4)](https://github.com/dogdev "dogdev (1 commits)")

---

Tags

iexbasetron-libtron-phptron-apitron-rest-api

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[iexbase/tron-api

A PHP API for interacting with Tron (Trx)

437136.9k8](/packages/iexbase-tron-api)

PHPackages © 2026

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