PHPackages                             chipslays/litegram - 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. chipslays/litegram

ActiveLibrary[API Development](/categories/api)

chipslays/litegram
==================

Simple, flexible, modular library for Telegram Bot Api.

3.0.17(2y ago)319011MITPHPPHP &gt;=7.4

Since Feb 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/chipslays/litegram)[ Packagist](https://packagist.org/packages/chipslays/litegram)[ RSS](/packages/chipslays-litegram/feed)WikiDiscussions v3.x.x Synced 1w ago

READMEChangelog (10)Dependencies (11)Versions (50)Used By (1)

🍃 Litegram
==========

[](#-litegram)

[![GitHub Workflow Status](https://camo.githubusercontent.com/6440adb123f2b8552878f93cf6863cb3508c7b3f5a5fa2aeda460258543c8284/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f63686970736c6179732f6c6974656772616d2f7465737473)](https://camo.githubusercontent.com/6440adb123f2b8552878f93cf6863cb3508c7b3f5a5fa2aeda460258543c8284/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f63686970736c6179732f6c6974656772616d2f7465737473)[![GitHub](https://camo.githubusercontent.com/266eb5d7f280a48e27a8d45198cfe25fba083889e07e2d21b79244249c45a1eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63686970736c6179732f6c6974656772616d3f636f6c6f723d626c7565)](https://camo.githubusercontent.com/266eb5d7f280a48e27a8d45198cfe25fba083889e07e2d21b79244249c45a1eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63686970736c6179732f6c6974656772616d3f636f6c6f723d626c7565)

> v3.x under **wip**, but can usable.

[![](https://github.com/chipslays/litegram/raw/v3.x.x/.github/images/cover-head.png)](https://github.com/chipslays/litegram/blob/v3.x.x/.github/images/cover-head.png)

Simple, flexible, modular library based on events for Telegram Bot Api.

Litegram can be used as a regular lightweight library or as a framework with added of plugins.

⭐ Features
----------

[](#-features)

- Events based (Routing);
- Cache (Redis, Memcached);
- Database (based on Laravel [Database](https://laravel.com/docs/8.x/database) + [Eloquent](https://laravel.com/docs/8.x/eloquent));
- Middlewares;
- Localization (based on [Phrase](https://github.com/chipslays/phrase));
- Sessions (based on Storage plugin);
- Storage (Flat files, Database drivers);
- Talk (Chain Conversation);
- Validation (based on [Respect/Validation](https://respect-validation.readthedocs.io/en/2.0/));
- Stemming;
- Plugins and Components;
- Supports Webhooks &amp; Simple Long-polling (not async);

🔩 Installation
--------------

[](#-installation)

Install via Composer:

```
$ composer require chipslays/litegram
```

### [📁 Litegram Project](https://github.com/chipslays/litegram-project)

[](#-litegram-project)

You can use a ready-made and configured [project](https://github.com/chipslays/litegram-project) for a quick start.

See more information [here](https://github.com/chipslays/litegram-project).

1️⃣ Create project:

```
composer create-project chipslays/litegram-project SuperDuperBot
```

2️⃣ Change the parameters of the configs and finally type in Terminal:

```
php lite webhook:set
```

```
php lite migration:up
```

🎉 Congratulation, bot project was set up.

💡 Examples
----------

[](#-examples)

```
require 'vendor/autoload.php';

$bot = bot($config)->webhook();

$bot->command('start', function () use ($bot) {
    $bot->ask('What is your name?', function () use ($bot) {
        $name = $bot->payload('message.text');
        $bot->reply("👋 Nice to meet you, {$name}!");
    });
});

// or
$bot->command('start', 'BotController@startConversation');

$bot->run();
```

> **Note:** Method `ask` work correctly only if `storage` driver set as `file`.

More examples you can see [`here`](https://github.com/chipslays/litegram/tree/v3.x.x/examples).

📖 Documentation
---------------

[](#-documentation)

Documentation can be found [`here`](https://github.com/chipslays/litegram/tree/v3.x.x/docs).

[🧩 VS Code Extension](https://marketplace.visualstudio.com/items?itemName=chipslays.litegram-snippets)
------------------------------------------------------------------------------------------------------

[](#-vs-code-extension)

Install [Litegram Snippets](https://marketplace.visualstudio.com/items?itemName=chipslays.litegram-snippets) extension for VS Code to increase productivity.

🔑 License
---------

[](#-license)

Released under the MIT public license. See the enclosed [`LICENSE`](https://github.com/chipslays/litegram/tree/v3.x.x/LICENSE) for details.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~160 days

Total

49

Last Release

1014d ago

Major Versions

1.0.12 → 2.0.02021-04-23

2.0.15 → 3.0.02021-09-02

v2.x-dev → 3.0.12021-09-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19103498?v=4)[chipslays](/maintainers/chipslays)[@chipslays](https://github.com/chipslays)

---

Top Contributors

[![chipslays](https://avatars.githubusercontent.com/u/19103498?v=4)](https://github.com/chipslays "chipslays (245 commits)")

---

Tags

apiapi-wrapperbotbot-apilibrarytelegramtelegram-botapibottelegram

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chipslays-litegram/health.svg)

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

###  Alternatives

[longman/telegram-bot

PHP Telegram bot

4.0k2.1M50](/packages/longman-telegram-bot)[zelenin/telegram-bot-api

Telegram Bot API Client

5917.2k](/packages/zelenin-telegram-bot-api)

PHPackages © 2026

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