phpbotgram

Getting started

Five short lessons. By the end you will have a running bot, you'll understand handlers and filters, you'll have built a stateful conversation, and you'll have a working production deployment recipe.

  1. Installation — composer require, PHP 8.5, ext-sodium.
  2. Your first botBOT_TOKEN , runPolling , echo handler.
  3. Handlers and filtersCommand , F -DSL, returning kwargs.
  4. State — inline FSM (FsmContext ) without scenes.
  5. Deployment — nginx + systemd from deploy/ .

Time budget: ~30 minutes end-to-end. Each lesson is self-contained and ends with a runnable example in examples/ .

Search results