Download the PHP package radianceteam/ton-client-php without Composer

On this page you can find all versions of the php package radianceteam/ton-client-php. 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 ton-client-php

# TON Client Wrapper for PHP

Community links:

Chat on Telegram

True async wrapper powered by ton_client extension with multi-threading and blocking queues under the hood.

Requirements

Installation

  1. Install TON Client PHP extension as described in readme.
  2. Run composer:

Usage examples

Basic example

Configuration & Logging

Handling async events

Each module interface has async() function which returns asynchronous interface version. Note that some functions, like in processing module, have async versions only.

Subscribing to events

Async interface also allows processing events occurred between function start and finish. This can be achieved via calling getEvents() function of the returned promise. Note this blocks the current program flow until the new event fired, or the unsubscribe function called.

Other

See more examples in demo folder.

Docker images

All Docker images are based on alpine image. They contain the corresponding PHP interpreter from the original PHP image with ton-client extension preinstalled.

How to use Docker images

Use radianceteam/ton-client-php as a base image in your Dockerfile:

Basically, do anything you can do with the original PHP image by just replacing FROM php:<PHP_VERSION>-<PHP_IMAGE_VARIANT> with FROM radianceteam/ton-client-php:1.38.0-php<PHP_VERSION>-<PHP_IMAGE_VARIANT>.

Note: only cli, fpm and zts variants are supported ATM.

TODO

Add apache variant based on Debian Buster image, as in the original PHP repo.

Development

See Development notes.

License

Apache License, Version 2.0.

Troubleshooting

Fire any question to our Telegram channel.


All versions of ton-client-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-ton_client Version >=1.38.0
psr/log Version ^1.1
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 radianceteam/ton-client-php contains the following files

Loading the files please wait ....