PHPackages                             usermp/eitaayar - 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. usermp/eitaayar

ActiveLibrary

usermp/eitaayar
===============

v1.0.0(3y ago)423MITPHP

Since Apr 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/usermp/eitaayar)[ Packagist](https://packagist.org/packages/usermp/eitaayar)[ RSS](/packages/usermp-eitaayar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Eitaayar API Client
===================

[](#eitaayar-api-client)

This package provides a simple way to interact with the Eitaayar API for sending messages and documents to Eitaayar channel or groups.

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

[](#installation)

To install this package, you can use Composer:

```
composer require usermp/eitaayar

```

Usage
-----

[](#usage)

To use this package, you need to have an [Eitaayar](https://eitaayar.ir/) API token.

Edit your .env file and add this const:

```
EITAAYAR_TOKEN={Eitaayar API token}

```

Sending a message
-----------------

[](#sending-a-message)

To send a text message to a chat, you can use the sendMessage() method. Here's an example:

```
use Eitaayar\Eitaayar;

// Send a message to the chat with ID 12345678
$message = Eitaayar::sendMessage(12345678, "Hello, world!");

```

The sendMessage() method returns an array with information about the message that was sent.

Sending a document
------------------

[](#sending-a-document)

To send a document to a chat, you can use the sendDocument() method. Here's an example:

```
use Eitaayar\Eitaayar;

// Send a document to the chat with ID 12345678
$message = Eitaayar::sendDocument(12345678, "/path/to/document.pdf");

```

The sendDocument() method returns an array with information about the message that was sent.

License
-------

[](#license)

Eitaayar API Client is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1114d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/48add354597189247b456142f8384caf8b7dde8d30e48eab47b6a1484ebceecc?d=identicon)[usermp](/maintainers/usermp)

---

Top Contributors

[![usermp](https://avatars.githubusercontent.com/u/39251365?v=4)](https://github.com/usermp "usermp (10 commits)")

### Embed Badge

![Health badge](/badges/usermp-eitaayar/health.svg)

```
[![Health](https://phpackages.com/badges/usermp-eitaayar/health.svg)](https://phpackages.com/packages/usermp-eitaayar)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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