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

ActiveLibrary

y0zh/tron-api
=============

A PHP API for interacting with Tron (Trx)

027PHP

Since Jan 16Pushed 1y agoCompare

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

READMEChangelog (1)DependenciesVersions (1)Used By (0)

TRON API
========

[](#tron-api)

A PHP API for interacting with the Tron Protocol

Install
-------

[](#install)

```
> composer require y0zh/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
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/47d42d87c39ad8431fbacc6bad957b521538bed2d8988f5607aa6dcbb20f552a?d=identicon)[y0zh](/maintainers/y0zh)

---

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)")[![y0zh](https://avatars.githubusercontent.com/u/3010622?v=4)](https://github.com/y0zh "y0zh (16 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)")

### Embed Badge

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

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

PHPackages © 2026

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