$ show xtrime-ru/TelegramRSS
TelegramRSS is a PHP web service that acts as a proxy between clients and a Telegram API server, providing RSS and JSON feeds of Telegram channel content. Built with AMPHP for asynchronous handling, it features rate limiting, IP-based access control, and middleware-based request processing. The service fetches messages from Telegram via a backend API server and formats them as RSS or JSON responses with media support.
The LLM identified 2 files worth highlighting for reuse:
PSR-3 compliant logger implementation that writes to stderr or any stream. Features log level filtering, context interpolation, and exception formatting. Self-contained and dependency-free beyond PSR interfaces, making it easily reusable in any PHP application needing standardized logging.
Implements sophisticated rate limiting with sliding window algorithm and adaptive banning based on error frequency. Tracks request timestamps to enforce RPM limits and progressively increases ban durations after repeated failures. Completely self-contained with no external dependencies, making it reusable in any application needing traffic throttling or abuse prevention.