layas/ffi-tdlib
最新稳定版本:v1.0.3
Composer 安装命令:
composer require layas/ffi-tdlib
包简介
A PHP FFI integration with TdLib via JSON interface
关键字:
README 文档
README
A PHP FFI integration with TdLib via JSON interface
Install
Via Composer
$ composer require aurimasniekis/ffi-tdlib
Reference
<?php namespace AurimasNiekis\FFI; class TdLib { /** * @param string|null $libFile An optional file path/name to `libtdjson.so` library */ public function __construct(string $libFile = null) { } /** * Synchronously executes TDLib request. * Only a few requests can be executed synchronously. * * @param array|\JsonSerializable $request * * @return array */ public static function execute($request): array { } /** * Receives incoming updates and request responses from the TDLib client. * * @param float $timeout The maximum number of seconds allowed for this function to wait for new data. * * @return array */ public function receive(float $timeout): array { } /** * Sends request to the TDLib client. * * @param array|\JsonSerializable $request */ public function send($request): void { } }
Testing
Run test cases
Run PHP style checker
$ composer cs-check
Run PHP style fixer
$ composer cs-fix
Run all continuous integration tests
$ composer ci-run
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-10