afaztech / reactor
Application skeleton for the Reactor PHP framework
Requires
- afaztech/neili: ^3.1
- afaztech/reactor-framework: ^0.5.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Reactor is a modern, asynchronous PHP framework for building powerful, production-ready Telegram bots.
This repository is the official application skeleton for the afaztech/reactor-framework package. It ships with a complete project layout, working example handlers, middleware, migrations, localisation files, and CLI commands, so you can go from composer create-project to a running bot in under five minutes.
It is the fastest way to start a new project and the recommended path for exploring what the framework can do.
Features
- Attribute-based routing
- Asynchronous by design
- Middleware pipeline
- Dependency injection
- Service providers
- Multi-source configuration
- Eloquent ORM
- Database-backed queue
- Cron scheduler
- Multi-driver caching
- JSON localisation
- Package ecosystem
- Polling and webhook modes
- Multi-process support
Requirements
afaztech/reactor-framework^0.5.0
Installation
composer create-project afaztech/reactor my-bot
cd my-bot
cp .env.example .env
Set your bot token in .env, then:
./reactor migrate ./reactor start
Usage
Send /start to your bot on Telegram. The bot replies with a welcome message and the main menu keyboard.
Documentation
For detailed documentation, see DOCUMENT.md.
Contributing
Contributions are welcome. Please read the contribution guidelines.
License
This project is licensed under the MIT License.