PHPackages                             timerunner2359/phelegram - 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. [API Development](/categories/api)
4. /
5. timerunner2359/phelegram

AbandonedArchivedLibrary[API Development](/categories/api)

timerunner2359/phelegram
========================

A simple solution for telegram bots

V1.4.18(4y ago)111GPL-3.0-or-laterPHPPHP &gt;=7.4

Since May 30Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (13)Used By (0)

Phelegram [![License](https://camo.githubusercontent.com/fc2e3569bd51fb94efe7a15312c62b627b2673b1e043b5bff8fad3eda436f001/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f656873616e67686f7262616e693139302f5068656c656772616d3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/fc2e3569bd51fb94efe7a15312c62b627b2673b1e043b5bff8fad3eda436f001/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f656873616e67686f7262616e693139302f5068656c656772616d3f7374796c653d666f722d7468652d6261646765) [![Code Size](https://camo.githubusercontent.com/5bbeaeceea1755be442384f75bde86bb01d903d8665b07efae84ca17eb26618b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f656873616e67686f7262616e693139302f5068656c656772616d3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/5bbeaeceea1755be442384f75bde86bb01d903d8665b07efae84ca17eb26618b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f656873616e67686f7262616e693139302f5068656c656772616d3f7374796c653d666f722d7468652d6261646765) [![Downloads](https://camo.githubusercontent.com/5917b80f425bd40497c71a270d02aa4f4f4b4cdccc97786d308e3d7841e23895/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74696d6572756e6e6572323335392f7068656c656772616d3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/5917b80f425bd40497c71a270d02aa4f4f4b4cdccc97786d308e3d7841e23895/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74696d6572756e6e6572323335392f7068656c656772616d3f7374796c653d666f722d7468652d6261646765)
========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#phelegram---)

[![Logo](Logo.png)](Logo.png)

A simple (yet feature-rich) solution for developing Telegram bots!
this is a mini framework ( or you may call it library ) to make simple or complex telegram bots easily and without getting your hands dirty with Telegram API manualy 😀

Notes
-----

[](#notes)

First of all, I'm not a very good developer, you may call me baby developer 😅
I wanted to develop my skill's while writing this project, so, everything is PURE PHP, no ready-to-use library where used. And I don't know how much good I wrote everything but I did my best.
So feel free to find bugs. And it'll be an honor to get suggestions from you guys to make this project better 😉

Why another library for Telegram bots in php?
---------------------------------------------

[](#why-another-library-for-telegram-bots-in-php)

Well, I've got some very good reasons :

1. I really wanted something to improve my coding skill's , and what's better than a real life situation in Telegram 😁
2. I saw other repos out there for writing Telegram bots and they're great, but I found them hard to deploy and it would take much time ( for me ) to understand how to send a simple message with them. and :

    > A lazy person will find an easy way to do it. *Bill Gates*

    I wrote this library as simple as possible, methods are easy to use, everything is understandable and you don't have to mess with the core of library at all. You Make Magic Happen 😉
3. Telegram API for bots is a great documention to read, but it's too much detailed to make a simple bot ASAP. this library is the right solution to that 😄

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

[](#installation)

Installation is as simple as possible.

1. Create a project with Composer :

    ```
    composer create-project timerunner2359/phelegram
    ```

    You'll be asked to enter your bot token and your chatID.

    Your bot's token is available in [@BotFather](https://t.me/botfather).

    You can get your chatID via [@GetMeMyChatIDBot](https://t.me/GetMeMyChatIDBot)
2. Make Magic Happen in `index.php` file 😉

How to use
----------

[](#how-to-use)

For now, The `Bot` class method names are self-describing.

I'll list all methods whenever i could 😅

License
-------

[](#license)

This library is under [GNU GPL 3.0 license](https://github.com/ehsanghorbani190/Phelegram/blob/master/COPYING).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~4 days

Total

8

Last Release

1741d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c1eae1498bf74f9f1749fd02a5ac8ed26865f5e062e758bf28c11647a378ac5?d=identicon)[TimeRunner2359](/maintainers/TimeRunner2359)

---

Top Contributors

[![ehsanghorbani190](https://avatars.githubusercontent.com/u/35449522?v=4)](https://github.com/ehsanghorbani190 "ehsanghorbani190 (115 commits)")

---

Tags

telegramtelegram-bottelegram-bot-api

### Embed Badge

![Health badge](/badges/timerunner2359-phelegram/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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