aurimasniekis/ffi-tdlib
Composer 安装命令:
composer require aurimasniekis/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.
aurimasniekis/ffi-tdlib 适用场景与选型建议
aurimasniekis/ffi-tdlib 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 627 次下载、GitHub Stars 达 14, 最近一次更新时间为 2020 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「td」 「telegram」 「tdlib」 「ffi」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aurimasniekis/ffi-tdlib 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aurimasniekis/ffi-tdlib 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aurimasniekis/ffi-tdlib 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP FFI Environment
Laravel 5.6 Monolog custom telegram channel
SDL FFI bindings for the PHP language
PHP Wrapper for Telegram Bot API
SDL Image FFI bindings for the PHP language
Local text embeddings via PHP FFI, powered by embedding.cpp. No Python, no API calls, no external services at runtime.
统计信息
- 总下载量: 627
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-04