Download the PHP package jackillll/tron without Composer

On this page you can find all versions of the php package jackillll/tron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tron

TRON API

A PHP API for interacting with the Tron Protocol

Based on iexbase/tron-api

Latest Stable Version

Install

Requirements

The following versions of PHP are supported by this version.

Configuration

This package supports a new, more intuitive configuration structure:

New Configuration Structure

Usage

Laravel Usage

1. Installation in Laravel

2. Publish Configuration

3. Environment Configuration

Add to your .env file:

4. Laravel Usage Examples

Using Dependency Injection:

Using Facade:

Service Class Example:

Plain PHP Usage

1. Using TronConfig Helper (Recommended)

2. Traditional HttpProvider Usage

3. Complete PHP Example

Network Configuration

Available Networks

Node Types

Dynamic Network Switching

Basic Examples

Quick Start Example

Legacy HttpProvider Example

Advanced Features

Smart Contract Interaction

Transaction Management

Block and Transaction Queries

Configuration Migration

From Old Configuration

To New Configuration

Error Handling

Best Practices

  1. Use Environment Variables: Store sensitive data like private keys in environment variables
  2. Error Handling: Always wrap API calls in try-catch blocks
  3. Network Selection: Use testnet for development, mainnet for production
  4. API Keys: Use TronGrid API keys for better rate limits
  5. Node Types: Use Full Node for transactions, Solidity Node for queries

API Documentation

For detailed API documentation, please refer to:

Testing

Examples

Check the examples/ directory for more usage examples:

Changelog

v2.0.0

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

The MIT License (MIT). Please see License File for more information.


All versions of tron with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version >=6.0
simplito/elliptic-php Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jackillll/tron contains the following files

Loading the files please wait ...