Travel Tour Reservation Bot
A self-hosted PHP/MySQL source project for Persian Telegram tour workflows. Explore transactional capacity, reservation lifecycle, separate manual payment review and retryable notifications. The public website is a static product and engineering case study; it operates no booking or payment service.
The public product website presents source-grounded architecture and installation. It contains no booking simulator, traveler form, checkout, Telegram client, live inventory or personal records. Actual PHP/MySQL operation is separately controlled by its operator.
Product capabilities
A focused tool designed to run in your environment.
The independent site explains the real PHP/MySQL application, reservation lifecycle and secure installation. Its architecture diagrams are static; no booking, payment or Telegram service operates on the website.
- 01Browse, search, create and publish tours through Persian traveler/operator interfaces
- 02Request 1–20 seats with locked capacity and transactional price/payment snapshots
- 03Apply ownership/RBAC, administrative review and separate manual payment verification
- 04Queue notifications and reminders, inspect aggregate reports and export bounded identity-free CSV
Operating workflow
Follow a request through held capacity and review.
Configuration and execution happen in your own environment. Review the project README and security guidance before enabling integrations.
- 01Review the traveler and authorized operator journeys
- 02Trace pending capacity holds through conditional review and confirmation
- 03Inspect transaction, manual payment and at-least-once outbox decisions
- 04Read independent installation, migration, security and recovery references
Local installation
Run the real software in an environment you control.
These steps reflect the repository's public setup documentation. Review its README for platform-specific details and the latest operational guidance.
Prerequisites
- Docker Compose; PHP 8.0–8.4 and MySQL/MariaDB in an independently managed environment
- Separate schema maintenance and restricted runtime database accounts
- Private configuration, HTTPS reverse proxy and a supervised worker; independent live operation additionally needs authorized Telegram credentials
Setup outline
git clone https://github.com/AlirezaBelal/travel-tour-reservation-bot.gitcd travel-tour-reservation-botPrepare .env privately from .env.example: Copy-Item on PowerShell; cp on macOS/Linux.Set independent database credentials, authorized owner IDs, webhook secret and profile encryption key before a fresh isolated installation.docker compose build appdocker compose run --rm migrate php bin/install.phpdocker compose run --rm migrate php bin/restrict-runtime.php --confirmAfter reviewing configuration, docker compose up -d starts app, database and worker.
- Installation reference only: this website starts no Telegram bot, PHP/MySQL service, reservation or payment.
- Expose only public/ through an HTTPS reverse proxy. HTTP binds to 127.0.0.1:8080; the database has no host port.
- For existing data stop writers, rehearse encrypted backup/restore and additive migrations 001–004 with a maintenance account. Code-only rollback can be unsafe.
- A running worker is required for notifications, reminders and unpaid-hold expiration. Outbox delivery is at least once; duplicates are possible.
- No live payment gateway or automatic refund. GPL-3.0-only license and notices apply.
Scope & trust
Source architecture. Separately operated infrastructure.
The public product website presents source-grounded architecture and installation. It contains no booking simulator, traveler form, checkout, Telegram client, live inventory or personal records. Actual PHP/MySQL operation is separately controlled by its operator.
- A request is not confirmation; confirmation requires payment approval, with free bookings handled separately
- Pending unpaid holds expire through the worker; rejection/cancellation release capacity; one booking identity remains per traveler/tour after cancellation
- Traveler cancellation is limited to before departure; completion requires the tour to have ended
- No real payment gateway or automatic refund; profile validation does not establish legal identity
- Source availability and synthetic CI do not certify a live Telegram account, server or backup policy
Run it in your environment
Understand the lifecycle. Plan an independent installation.
Read the transaction and delivery decisions before independently configuring PHP/MySQL and Telegram. Payment review is manual; the product website creates no reservations or messages.
