PHPackages                             telegram-bot-sdk/standalone-starter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. telegram-bot-sdk/standalone-starter

ActiveProject[Utility &amp; Helpers](/categories/utility)

telegram-bot-sdk/standalone-starter
===================================

Telegram Bot SDK Standalone Starter Project

1532PHP

Since Apr 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/telegram-bot-sdk/standalone-starter)[ Packagist](https://packagist.org/packages/telegram-bot-sdk/standalone-starter)[ RSS](/packages/telegram-bot-sdk-standalone-starter/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Standalone Starter - Telegram Bot SDK
=====================================

[](#standalone-starter---telegram-bot-sdk)

> Standalone starter for [Telegram Bot SDK](https://github.com/telegram-bot-sdk/telegram-bot-sdk) to create Telegram Bots in PHP.

Features
--------

[](#features)

- Multi-Bots.
- Webhook.
- Updates Polling.
- Commands.
- Event Listener.

Usage
-----

[](#usage)

```
composer create-project telegram-bot-sdk/standalone-starter mybot
```

- Create a bot with Botfather.
- Open `.env` and configure your token and domain (Copy `.env.example` if you have cloned this project).
- Explore `config/telegram.php`
- Follow docs.
- Build bots!

### Helpers

[](#helpers)

The starter comes with some useful helpers for convenience that can be found in `bot/helpers.php`.

- `telegram()` - Get an instance of BotManager from the container.

Directory Structure
-------------------

[](#directory-structure)

```
.
├── .env - Project environment variable.
├── bootstrap - Bot bootstrapping files.
├── bot - Your bot main files.
│   ├── Commands - Bot commands.
│   ├── Console - CLI console commands.
│   ├── Facades - Bot Facades.
│   ├── Http - Bot controllers.
│   └── Listeners - Event Listeners.
├── config - Config files.
|   └── telegram.php - Your main SDK configuration.
└── public - Public facing files.
    └── index.php - Project index file.
    └── pooling.php - Long-pooling update handler.
    └── webhook.php - Webhook update handler.

```

Webhook Setup
-------------

[](#webhook-setup)

> **IMPORTANT:** Telegram requires your domain to have an SSL certificate (https) to setup a webhook.

Open `.env` and fill your domain:

```
TELEGRAM_WEBHOOK_DOMAIN=www.yourdomain.com

```

The standalone starter comes with a CLI helper to setup webhook for your bot. Simply fire the below command.

```
php telegram webhook:setup
```

This will setup your bot's webhook to this URL:

```
https:///webhook.php?token=YourBotToken&bot=YourBotName

```

The webhook file will verify any inbound requests to make sure its a valid request from Telegram. It'll deny any other requests. So you need not have to worry.

You can process inbound updates either using an event listener or directly in the given `bot/Http/WebhookController.php` in `listenForUpdate()` method.

License
-------

[](#license)

This project is released under the [BSD 3-Clause](LICENSE.md) License.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/342057ab9fe14ca6e5dd512f5972b639efeadadd79579f4b8950c7cb3bbddc17?d=identicon)[irazasyed](/maintainers/irazasyed)

---

Top Contributors

[![irazasyed](https://avatars.githubusercontent.com/u/1915268?v=4)](https://github.com/irazasyed "irazasyed (10 commits)")[![yongkyali](https://avatars.githubusercontent.com/u/22522732?v=4)](https://github.com/yongkyali "yongkyali (2 commits)")

---

Tags

starter-projectstarter-templatetelegramtelegram-bottelegram-bot-apitelegram-bot-sdktelegram-botstemplate

### Embed Badge

![Health badge](/badges/telegram-bot-sdk-standalone-starter/health.svg)

```
[![Health](https://phpackages.com/badges/telegram-bot-sdk-standalone-starter/health.svg)](https://phpackages.com/packages/telegram-bot-sdk-standalone-starter)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[symfony/event-dispatcher

Provides tools that allow your application components to communicate with each other by dispatching events and listening to them

8.6k985.9M3.4k](/packages/symfony-event-dispatcher)[symfony/polyfill-php80

Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions

1.7k815.2M455](/packages/symfony-polyfill-php80)[symfony/var-exporter

Provides tools to export, instantiate, hydrate, clone and lazy-load PHP objects

2.1k378.1M437](/packages/symfony-var-exporter)[seld/phar-utils

PHAR file format utilities, for when PHP phars you up

875180.0M32](/packages/seld-phar-utils)[dansmith/laravel5-foundation

Zurb Foundation components for Laravel5

104.6k](/packages/dansmith-laravel5-foundation)

PHPackages © 2026

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