承接 meghdadfadaee/eitaa-serializer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

meghdadfadaee/eitaa-serializer

最新稳定版本:1.0.0

Composer 安装命令:

composer require meghdadfadaee/eitaa-serializer

包简介

Laravel client for serializing Eitaa TL requests and sending them to the Eitaa gateway.

README 文档

README

Laravel client for serializing Eitaa TL requests, sending them to https://sajad.eitaa.ir/eitaa/, and deserializing the binary response.

Installation

Requires PHP 8.3 or newer and Laravel 12 or newer.

composer require meghdadfadaee/eitaa-serializer

If the package is not published on Packagist yet, install it from the Git repository:

composer config repositories.eitaa-serializer vcs https://github.com/MeghdadFadaee/eitaa-serializer
composer require meghdadfadaee/eitaa-serializer:dev-main

For local development from a sibling Laravel project:

composer config repositories.eitaa-serializer path ../eitaa-serializer
composer require meghdadfadaee/eitaa-serializer:@dev

Laravel package discovery registers the service provider automatically.

Configuration

Publish the config when you need to override defaults:

php artisan vendor:publish --tag=eitaa-config

Available environment variables:

EITAA_GATEWAY_ENDPOINT=https://sajad.eitaa.ir/eitaa/
EITAA_LAYER=133
EITAA_DEFAULT_IMEI=00__web
EITAA_TIMEOUT=30

The package uses its bundled TL schema by default. If you need to customize the schema:

php artisan vendor:publish --tag=eitaa-schema

Then set:

EITAA_SCHEMA_PATH=/absolute/path/to/resources/eitaa/schema.json

Usage

Inject or resolve the client:

use MeghdadFadaee\EitaaSerializer\EitaaGatewayClient;

$response = app(EitaaGatewayClient::class)->send(
    method: 'help.getConfig',
    params: [],
    token: null,
    imei: null,
);

Or use the facade:

use MeghdadFadaee\EitaaSerializer\Facades\Eitaa;

$response = Eitaa::send('help.getConfig');

Authenticated calls:

$response = app(EitaaGatewayClient::class)->send(
    method: 'messages.sendMessage',
    params: [
        'flags' => 0,
        'peer' => [
            '_' => 'inputPeerUser',
            'user_id' => '123456789',
            'access_hash' => '987654321',
        ],
        'message' => 'Hello',
        'random_id' => (string) random_int(1, PHP_INT_MAX),
    ],
    token: $token,
    imei: $imei,
);

TL Value Rules

  • TL objects use _ for the constructor predicate, for example ['_'=> 'inputPeerSelf'].
  • Optional fields require the correct flags bits from the schema.
  • long values should be strings when they can exceed PHP integer range.
  • bytes, int128, int256, and int512 can be raw binary strings or arrays of byte integers.

Testing

composer install
composer test

Live Eitaa integration tests are available for no-auth methods. They are disabled by default because they call the external gateway:

EITAA_RUN_INTEGRATION=1 composer test:integration

On PowerShell:

$env:EITAA_RUN_INTEGRATION='1'; composer test:integration

The integration suite currently calls help.getConfig and help.getNearestDc without a token.

meghdadfadaee/eitaa-serializer 适用场景与选型建议

meghdadfadaee/eitaa-serializer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 meghdadfadaee/eitaa-serializer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 meghdadfadaee/eitaa-serializer 我们能提供哪些服务?
定制开发 / 二次开发

基于 meghdadfadaee/eitaa-serializer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 40
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-09