PHPackages                             peyman-manteali/telegram-notifier - 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. peyman-manteali/telegram-notifier

ActiveLibrary

peyman-manteali/telegram-notifier
=================================

A simple Laravel package to send messages to Telegram using the Telegram Bot API.

1.0.0(1y ago)03MITPHPPHP ^8.0

Since Nov 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PeymanManteali/telegram-notifier)[ Packagist](https://packagist.org/packages/peyman-manteali/telegram-notifier)[ RSS](/packages/peyman-manteali-telegram-notifier/feed)WikiDiscussions main Synced 1mo ago

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

Telegram Notifier
=================

[](#telegram-notifier)

Telegram Notifier is a Laravel package for sending messages to Telegram via the Telegram Bot API. This package provides an easy way to integrate Telegram notifications in your Laravel application.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- Laravel 11
- Guzzle HTTP client

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

[](#installation)

To install the package, use Composer:

```
composer require peyman-manteali/telegram-notifier
```

Usage
-----

[](#usage)

After installation, you can use the `Telegram` class to send messages to a Telegram chat.

### Example

[](#example)

```
use TelegramNotifier\Telegram;

$message = "Hello, this is a test message!";
$botToken = "your_bot_token";
$chatId = "your_chat_id";

// Optional: specify the parse mode (HTML, Markdown, MarkdownV2)
$parseMode = "HTML";

$response = Telegram::sendMessage($message, $botToken, $chatId, $parseMode);
```

### Parameters

[](#parameters)

- **`$message`**: The message text to send to Telegram.
- **`$botToken`**: Your Telegram bot token.
- **`$chatId`**: The chat ID where the message should be sent.
- **`$parseMode`** (optional): Defines the formatting style for the message. Supported values are:

    - **HTML**
    - **Markdown**
    - **MarkdownV2**

### Error Handling

[](#error-handling)

If an error occurs while sending the message, the function will return a JSON response with the error message and a 500 status code.

License
-------

[](#license)

This package is open-source and licensed under the MIT License.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

545d ago

### Community

Maintainers

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

---

Top Contributors

[![PeymanManteali](https://avatars.githubusercontent.com/u/156663346?v=4)](https://github.com/PeymanManteali "PeymanManteali (11 commits)")

### Embed Badge

![Health badge](/badges/peyman-manteali-telegram-notifier/health.svg)

```
[![Health](https://phpackages.com/badges/peyman-manteali-telegram-notifier/health.svg)](https://phpackages.com/packages/peyman-manteali-telegram-notifier)
```

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[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)
