PHPackages                             just-luka/php-tron - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. just-luka/php-tron

ActiveLibrary[HTTP &amp; Networking](/categories/http)

just-luka/php-tron
==================

PHP package for interacting with TRX network

v1.1.1(1y ago)319MITPHPPHP &gt;=8.2

Since Mar 5Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/just-Luka/php-tron)[ Packagist](https://packagist.org/packages/just-luka/php-tron)[ RSS](/packages/just-luka-php-tron/feed)WikiDiscussions main Synced 1mo ago

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

  [![PHP](https://camo.githubusercontent.com/ac1e0a5c4e9856771e9209edfa09a82f2ccbb1b1711e0ee426482958b4302967/68747470733a2f2f6a7573742d6c756b612e6769746875622e696f2f7068702e737667)](https://camo.githubusercontent.com/ac1e0a5c4e9856771e9209edfa09a82f2ccbb1b1711e0ee426482958b4302967/68747470733a2f2f6a7573742d6c756b612e6769746875622e696f2f7068702e737667) [![X](https://camo.githubusercontent.com/0523089ddf215b9937de9c2679a07f92892cdbfb8e8c2dccf6d8f5c09090e5db/68747470733a2f2f6a7573742d6c756b612e6769746875622e696f2f782d6d61726b2d3531322e706e67)](https://camo.githubusercontent.com/0523089ddf215b9937de9c2679a07f92892cdbfb8e8c2dccf6d8f5c09090e5db/68747470733a2f2f6a7573742d6c756b612e6769746875622e696f2f782d6d61726b2d3531322e706e67) [![TronGrid](https://camo.githubusercontent.com/7729489add0e164a45a38df37e51e0f4dbe678cc3964dc021763060644159044/68747470733a2f2f6a7573742d6c756b612e6769746875622e696f2f74726f6e677269642e706e67)](https://camo.githubusercontent.com/7729489add0e164a45a38df37e51e0f4dbe678cc3964dc021763060644159044/68747470733a2f2f6a7573742d6c756b612e6769746875622e696f2f74726f6e677269642e706e67)

 [![Stable Version](https://camo.githubusercontent.com/90a28d6ff2bccc57920f06c7db37bd76f6a3e934c8117182aa218d4522bf125d/68747470733a2f2f706f7365722e707567782e6f72672f6a7573742d4c756b612f7068702d74726f6e2f762f737461626c65)](https://github.com/just-Luka/php-tron/releases) [![Php Version](https://camo.githubusercontent.com/c05d077e0b98ebba55e8a3b2f37d37a2acef281c74f4378dbb4d5052186faf25/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e322d3839393362652e7376673f6d61784167653d32353932303030)](https://www.php.net) [![php-tron License](https://camo.githubusercontent.com/11b57809b0bff72973083eb32c621c5aa9bda2b6d991af51cd0fd39d081e41f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a7573742d4c756b612f7068702d74726f6e2e7376673f6d61784167653d32353932303030)](https://github.com/just-Luka/php-tron/blob/main/LICENSE)

A PHP library for interacting with the TRON blockchain.
=======================================================

[](#a-php-library-for-interacting-with-the-tron-blockchain)

Package provides user-friendly extension API. The latest version of TronGrid's proprietary API is v1. TronGrid API service has the features of low latency, high consistency, high availability and partition fault tolerance.

**Note:** In order to ensure the reasonable allocation of requested resources, all request APIs need to include the [**API Key**](https://www.trongrid.io/dashboard/keys) parameter.

> Requests **without an API Key** will be severely limited or may not receive a response.

### Features

[](#features)

- Generate TRON address
- Check account balance
- Check transaction details
- List assets from chain
- List transactions by contract address

### Installation

[](#installation)

Install the package via Composer:

```
composer require just-Luka/php-tron
```

### Usage

[](#usage)

Initialize the Client (Mainnet)

```
use Trx\TrxClient;

$tron = new TronClient('API-KEY');
```

Initialize the Client (Shasta Testnet)

```
use Trx\TrxClient;

$tron = new TronClient(testmode: true);
```

### Example

[](#example)

Generate TRON address

```
$wallet = $tron->wallet()->create();

echo $wallet->getAddress();
echo $wallet->getPrivateKey();
```

TRON balance

```
$account = $tron->account('TDrbCtdTj5KMo67mtQw2XXu5eTqwwVYoKz');

echo $account->explore()->balance;
```

Transactions

```
$account = $tron->account('TDrbCtdTj5KMo67mtQw2XXu5eTqwwVYoKz');

$transactions = $account->transactions();
# Or
$transactions = $account->filterLimit(10)->filterOnlyConfirmed()->transactions(); # Apply filters

var_dump($transactions);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance53

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~2 days

Total

5

Last Release

427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/abe24e91def2f7b9c120e1def23da539b7ad221b740f360858f1d1660ad43c3a?d=identicon)[just-luka](/maintainers/just-luka)

---

Top Contributors

[![just-Luka](https://avatars.githubusercontent.com/u/56077514?v=4)](https://github.com/just-Luka "just-Luka (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/just-luka-php-tron/health.svg)

```
[![Health](https://phpackages.com/badges/just-luka-php-tron/health.svg)](https://phpackages.com/packages/just-luka-php-tron)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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