A Modern PHP Framework for Telegram Bot Development & Database Management
Fast · Secure · Eloquent-style ORM · Telegram API First
- Eloquent-style ORM - Familiar Active Record implementation
$user = User::find(1)->update(['username' => 'framebot_user']);
- Migrations System - Version-controlled database schema management
- Relationship Support - HasMany, BelongsTo, Polymorphic relations
- Auto-Send Architecture - RAII pattern for seamless API calls
Message::chatId($this->chatID)->text("welcome to my telegram bot");
// Automatically sends on destruct
- 📍 Locations & Venues
- 🎲 Interactive Dice/Polls
- 💌 Media Groups & Paid Content
- 🎭 Message Reactions
- Dotenv Implementation - Secure credential management
- Auto-Sanitization - Built-in parameter validation
- Request Throttling - Protection against API abuse
- PHP 8.0+
- Composer
- MySQL
git clone /~https://github.com/alirezajavadigit/framebot.git
cd framebot
composer install
cp .env.example .env
# Telegram Configuration
TOKEN=your_bot_token_here
APP_ENV=production
# Database Settings
DB_HOST=127.0.0.1
DB_NAME=framebot
DB_USERNAME=root
DB_PASSWORD=
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit changes (
git commit -m 'Add some amazing feature'
) - Push to branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Contribution Guidelines:
- Follow PSR-12 coding standards
- Include PHPDoc comments
- Add unit tests for new features
- Update documentation accordingly
- GitHub Discussions - Q&A and general help
- Telegram Channel - Announcements & updates & Q&A
MIT License - See LICENSE for full text
Created with ❤️ by Alireza Javadi
Part of the Open Source Telegram Bot Ecosystem 🤖