PHPackages                             artincms/php-api-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. [API Development](/categories/api)
4. /
5. artincms/php-api-tron

ActiveLibrary[API Development](/categories/api)

artincms/php-api-tron
=====================

A PHP API for interacting with Tron (Trx)

140PHP

Since Mar 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/artincms/php-api-tron)[ Packagist](https://packagist.org/packages/artincms/php-api-tron)[ RSS](/packages/artincms-php-api-tron/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

TRON API
========

[](#tron-api)

A PHP API for interacting with the Tron Protocol

[![Latest Stable Version](https://camo.githubusercontent.com/b3e59771275f51383f9ae4a2d42059564f3c3d8eeaff9169eaa87f7e60553041/68747470733a2f2f706f7365722e707567782e6f72672f617274696e636d732f74726f6e2d6170692f76657273696f6e)](https://packagist.org/packages/artincms/tron-api)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/81d1ad62c13c1f604ffe39af057874cffa7823994225036e8ee7d6d806a97f1c/68747470733a2f2f6170692e7472617669732d63692e636f6d2f617274696e636d732f74726f6e2d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/artincms/tron-api)[![Contributors](https://camo.githubusercontent.com/a6e59cde2c031cc127c929a33c8383d4de65b47ee24c63c58f1c7d3c39a626cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f617274696e636d732f74726f6e2d6170692e737667)](https://github.com/artincms/tron-api/graphs/contributors)[![Total Downloads](https://camo.githubusercontent.com/3d1544e76e3e34dc2e7e2b165a941d438f0ad87ef4c246929471aab72c46e2d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617274696e636d732f74726f6e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/artincms/tron-api)

Install
-------

[](#install)

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

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

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 7.4

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

[](#example-usage)

```
use artincms\TronAPI\Tron;

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

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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0edbbc676f6275e1d7211d2b622fc575014175e64f362737f2ef6edb092216e1?d=identicon)[adel\_ra777](/maintainers/adel_ra777)

---

Top Contributors

[![artincms](https://avatars.githubusercontent.com/u/12808019?v=4)](https://github.com/artincms "artincms (2 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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