PHPackages                             mattvb91/trontrx - 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. mattvb91/trontrx

AbandonedArchivedLibrary[API Development](/categories/api)

mattvb91/trontrx
================

Library for interacting with the Tron blockchain through Tron-Grid

0.3.0(7y ago)176709[1 issues](https://github.com/mattvb91/tron-trx-php/issues)[1 PRs](https://github.com/mattvb91/tron-trx-php/pulls)PHP

Since Oct 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mattvb91/tron-trx-php)[ Packagist](https://packagist.org/packages/mattvb91/trontrx)[ RSS](/packages/mattvb91-trontrx/feed)WikiDiscussions master Synced yesterday

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

tron-trx-php
============

[](#tron-trx-php)

[![Build Status](https://camo.githubusercontent.com/b49cdc54e9f87ed1eff972bca8ae126a123d5e206a692587ac1b5e4447924803/68747470733a2f2f7472617669732d63692e636f6d2f6d617474766239312f74726f6e2d7472782d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/mattvb91/tron-trx-php)[![Coverage Status](https://camo.githubusercontent.com/42915cbdb12cbd76219bd83d3c2c5762833e20724105d4a9d058f83f9d8f0fd8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d617474766239312f74726f6e2d7472782d7068702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mattvb91/tron-trx-php?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1a9ab0ecb6ca2a5c4fa70d5014fcb376e5927a9844b45c22983e82da9ff9778b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d617474766239312f74726f6e2d7472782d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mattvb91/tron-trx-php/?branch=master)

PHP Library for interacting with the Tron blockchain through Tron-Grid

Overview
--------

[](#overview)

This library aims to integrate with the Tron-Grid while removing some of the dangerous aspects of its API. One of the biggest issues currently is private keys being posted over a network to various TRON nodes while leaving the node configuration up to developers. This causes great potential for man in the middle attacks to take place and steal private keys. Even with trustworthy developers who know how to setup their networking &amp; authentication layers mistakes do happen and fact is your private key may be getting posted over a network and being exposed.

##### This library integrates with Tron-Grid while removing some of these dangerous parts and doing them locally instead

[](#this-library-integrates-with-tron-grid-while-removing-some-of-these-dangerous-parts-and-doing-them-locally-instead)

So in a nutshell. This library allows you to use the harmless endpoints such as `/wallet/getaccountnet` etc.. while any actions such as generating addresses/private keys or signing are all done locally without your private key getting posted over a network.

### Prerequisites

[](#prerequisites)

Your PHP installation requires bcmath &amp; gmp extensions to be enabled.

### Installing

[](#installing)

```
composer require mattvb91/trontrx

```

### Docker

[](#docker)

There is a [Dockerfile](/build/Dockerfile) available that you can use to build a working image to get started quickly.

```
cd build
docker build -t tron-trx-php .
cd ../
docker run -it -v $(pwd):/app -u 1000 tron-trx-php /bin/bash
composer install
./vendor/bin/phpunit
```

Available interface
-------------------

[](#available-interface)

- TODO describe available interface

Built With
----------

[](#built-with)

- [ionux/phactor](https://github.com/ionux/phactor) - PHP implementation of the elliptic curve based on secp256k1
- [php-keccak](https://github.com/kornrunner/php-keccak) - Pure PHP implementation of Keccak (SHA-3)

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/mattvb91/tron-trx-php/tags).

Contributors
------------

[](#contributors)

- [CryptoSpaces](https://github.com/CryptoSpaces)

See also the list of [contributors](https://github.com/mattvb91/tron-trx-php/contributors) who participated in this project.

License
-------

[](#license)

```
MIT License

Copyright (c) 2018 Matthias von Bargen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

```

Acknowledgments
---------------

[](#acknowledgments)

- Support files from [iexbase/tron-api](https://github.com/iexbase/tron-api)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

2747d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9cd2b67b8402f7efb3c62f9a3e806c3dcdabd86b75687da1373ab2064e89cdc?d=identicon)[mattvb91](/maintainers/mattvb91)

---

Top Contributors

[![mattvb91](https://avatars.githubusercontent.com/u/11991564?v=4)](https://github.com/mattvb91 "mattvb91 (35 commits)")[![CryptoSpaces](https://avatars.githubusercontent.com/u/39212459?v=4)](https://github.com/CryptoSpaces "CryptoSpaces (1 commits)")

---

Tags

phpphp-libraryphp7trontron-librarytron-protocol

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mattvb91-trontrx/health.svg)

```
[![Health](https://phpackages.com/badges/mattvb91-trontrx/health.svg)](https://phpackages.com/packages/mattvb91-trontrx)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[fenguoz/bsc-php

Support Binance's BNB and BEP20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash

4720.9k](/packages/fenguoz-bsc-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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