From 89b37e9f4cc21b951e1318dc7f90425a12e3a3db Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 23 May 2020 01:27:38 +0300 Subject: [PATCH] Improve PHP section in example README. GitOrigin-RevId: f4b7e43ce1a152202bc3d5e5cf7c83df4f5212e0 --- example/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/example/README.md b/example/README.md index 281c99554..44090b565 100644 --- a/example/README.md +++ b/example/README.md @@ -162,14 +162,14 @@ See [erl-tdlib](https://github.com/lattenwald/erl-tdlib) for an example of TDLib ## Using TDLib in PHP projects -TDLib can be used from the PHP programming language by wrapping its functionality in a PHP extension. +If you use modern PHP >= 7.4, you can use TDLib via a PHP FFI extension. For example, take a look at [ffi-tdlib](https://github.com/aurimasniekis/php-ffi-tdlib) - an FFI-based TDLib wrapper. + +See also [tdlib-schema](https://github.com/aurimasniekis/php-tdlib-schema) - a generator for TDLib API classes. + +For older PHP versions you can use TDLib by wrapping its functionality in a PHP extension. See [phptdlib](https://github.com/yaroslavche/phptdlib), [tdlib](https://github.com/aurimasniekis/php-ext-tdlib) or [PIF-TDPony](https://github.com/danog/pif-tdpony) for examples of such extensions which provide access to TDLib from PHP. -See [ffi-tdlib](https://github.com/aurimasniekis/php-ffi-tdlib) - a PHP 7.4 FFI `libtdjson` based TdLib client. - -See [tdlib-schema](https://github.com/aurimasniekis/php-tdlib-schema) - A TdLib PHP Schema with generator for generating PHP objects from td_api.tl file. Provides PHP Classes which can be created from TdLib Json and generate Json for TdLib. - See [tdlib-bundle](https://github.com/yaroslavche/tdlib-bundle) – a Symfony bundle based on [phptdlib](https://github.com/yaroslavche/phptdlib).