PHPackages                             disintegrations/eitaa-serializer-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. disintegrations/eitaa-serializer-laravel

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

disintegrations/eitaa-serializer-laravel
========================================

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

1.0.1(1mo ago)0117↓88.9%MITPHPPHP ^8.3CI passing

Since May 28Pushed 1mo agoCompare

[ Source](https://github.com/disintegrations/eitaa-serializer-laravel)[ Packagist](https://packagist.org/packages/disintegrations/eitaa-serializer-laravel)[ RSS](/packages/disintegrations-eitaa-serializer-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (8)Versions (4)Used By (0)

Eitaa Serializer
================

[](#eitaa-serializer)

[![Package CI](https://github.com/disintegrations/eitaa-serializer-laravel/actions/workflows/tests.yml/badge.svg)](https://github.com/disintegrations/eitaa-serializer-laravel/actions/workflows/tests.yml)

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

Installation
------------

[](#installation)

Requires PHP 8.3 or newer and Laravel 12 or newer.

```
composer require disintegrations/eitaa-serializer-laravel
```

Laravel package discovery registers the service provider automatically.

Configuration
-------------

[](#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
-----

[](#usage)

Inject or resolve the client:

```
use Disintegrations\EitaaSerializer\EitaaGatewayClient;

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

Or use the facade:

```
use Disintegrations\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-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
-------

[](#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.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance92

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Total

2

Last Release

39d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dcb157e0564893a0b34a9edab4293456708dfe6d635f094ca5a822e569b7d669?d=identicon)[disintegrations](/maintainers/disintegrations)

---

Top Contributors

[![disintegrations](https://avatars.githubusercontent.com/u/288711451?v=4)](https://github.com/disintegrations "disintegrations (6 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/disintegrations-eitaa-serializer-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/disintegrations-eitaa-serializer-laravel/health.svg)](https://phpackages.com/packages/disintegrations-eitaa-serializer-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
