laraxgram/surge
Laraxgram Surge is a Laravel package for building Telegram bots with a clean, fluent API. It streamlines bot setup, update handling, commands, and webhooks, helping PHP developers ship Telegram integrations faster with less boilerplate.
composer require <vendor>/<package>:^2.0. Confirm the PHP/Laravel constraints in composer.json before upgrading—major versions often bump minimum PHP.php artisan vendor:publish --tag=<package>-config..env:
SERVER_DRIVER=frankenphp for Caddy-based worker modeSERVER_DRIVER=roadrunner for the RoadRunner binary/.rr.yaml workflowphp artisan <package>:start) and hit a route that exercises the container, sessions, and database.Where to look first
config/<package>.php: driver selection, worker counts, warm services, listeners.src/Drivers/* or equivalent): each driver has different bootstrap and lifecycle behavior.First use case
Swap a staging environment from PHP-FPM to FrankenPHP worker mode and run a smoke test against a stateful flow (login → write → redirect → read). This surfaces state-leak bugs early and gives you a throughput baseline before touching production. Keep RoadRunner configured as a fallback so you can compare behavior and isolate driver-specific issues.
.env and never hard-code it. Use FrankenPHP locally for parity with production and RoadRunner in CI or on hosts where Caddy is not available.queue:work and schedule:work as their own supervised processes. Do not assume the HTTP worker will process queued jobs or scheduled tasks.php artisan config:cache and route:cache.$_SERVER values behave. Check Caddy logs, not just Laravel logs..rr.yaml must define the HTTP, static, and logging sections correctly. Worker counts interact with PHP memory limits; set max_jobs so workers recycle before memory grows unbounded.php artisan config:cache bakes the driver and worker settings. Clear and rebuild after changing .env, or you will debug a phantom driver mismatch.-v) and read the driver’s own logs.php artisan about to confirm the active driver and cached config.tick-style callbacks for periodic work. Avoid doing periodic work in request handlers.composer.json, and run your stateful smoke tests against both new drivers. Major-version releases frequently include behavior changes that are not called out in the summary.How can I help you explore Laravel packages today?