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

AbandonedLibrary[API Development](/categories/api)

aiwozhe/tron-api
================

A PHP API for interacting with Tron (Trx)

v5.0(3y ago)2462.0k330[94 issues](https://github.com/iexbase/tron-api/issues)[9 PRs](https://github.com/iexbase/tron-api/pulls)MITPHPPHP &gt;=8.0CI failing

Since Sep 12Pushed 1y ago19 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (24)Used By (0)

TRON API
========

[](#tron-api)

A PHP API for interacting with the Tron Protocol

[![Latest Stable Version](https://camo.githubusercontent.com/9e951ff2f675ec983d0243774e7bce1cc6ad5e1b7e112551ba3d05db6576da10/68747470733a2f2f706f7365722e707567782e6f72672f696578626173652f74726f6e2d6170692f76657273696f6e)](https://packagist.org/packages/iexbase/tron-api)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/64801e7bb85f3cf73e81b5e0236a2dd04793d70b5df090cc870cd2bd8057b78b/68747470733a2f2f6170692e7472617669732d63692e636f6d2f696578626173652f74726f6e2d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/iexbase/tron-api)[![Contributors](https://camo.githubusercontent.com/54345c2cbbe1331508b13056645101b3326b4ffde17f71a79d97858c931e5e29/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f696578626173652f74726f6e2d6170692e737667)](https://github.com/iexbase/tron-api/graphs/contributors)[![Total Downloads](https://camo.githubusercontent.com/e3042b5dfcbc3a636cba7289fcfcebea60b439b3cb7cb186b065b487538d45e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696578626173652f74726f6e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iexbase/tron-api)

Install
-------

[](#install)

```
> composer require iexbase/tron-api --ignore-platform-reqs
```

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

44

—

FairBetter than 91% of packages

Maintenance21

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 87.9% 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 ~74 days

Recently: every ~183 days

Total

21

Last Release

1298d ago

Major Versions

v1.3.7 → v2.0.12018-11-06

v2.0.7 → v3.02020-09-23

v3.1.2 → 4.02021-05-29

4.0.1 → v5.02022-10-18

PHP version history (5 changes)v1.0PHP ^7.1

v3.1.2PHP ^7.2

4.0PHP ^7.3

4.0.1PHP ^7.4

v5.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1af97e876d0b93c8bf0de854df2f0690d861ca3a62af340e368228677d92a2ef?d=identicon)[aiwozhe](/maintainers/aiwozhe)

---

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)")[![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

phptrontron-apitron-librarytron-protocoltron-resttron-wallettronscaniexbasetron-libtron-phptron-apitron-rest-api

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/aiwozhe-tron-api/health.svg)](https://phpackages.com/packages/aiwozhe-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)
