tether/server
Tether Server provides a lightweight, Laravel-friendly server layer for handling incoming connections and routing messages between clients and your PHP backend. Configure it quickly, integrate with existing apps, and build reliable real-time or request-driven services without extra infrastructure.
Install and publish:
composer require lrakauskas/tether-server
php artisan vendor:publish --provider="Lrakauskas\TetherServer\TetherServerServiceProvider"
php artisan migrate
v1.0.1 cleaned up the README links, so the quickstart is the best place to confirm the exact provider/tag names for your version.
Review config/tether.php (or the package’s config file) and set the driver, storage backend, host/port, and auth options in .env.
Start the server process in a separate terminal during development—likely an Artisan command such as php artisan tether:serve. In production, run it under Supervisor rather than PHP-FPM.
First use case: real-time notifications or a live activity feed. Publish a Laravel event through the package’s broadcaster/API, connect a browser EventSource or WebSocket client to the server endpoint, and confirm the message arrives. Then use the cursor pagination endpoint to fetch missed events on reconnect—v1.0.1 fixes overlapping-timestamp pagination, making catch-up/replay reliable.
Where to look first: README quickstart, config/tether.php, the service provider’s route registration, and any included JS client examples.
(created_at, id) is safe for replay and initial sync.created_at. Upgrade, and if you write custom queries, always use a unique tiebreaker such as id alongside the timestamp.^1.0 and review the changelog before minor upgrades.php artisan config:cache after .env changes, and watch memory usage with a restart policy.proxy_buffering off) and raise timeouts. For WebSockets, ensure upgrade headers are forwarded.How can I help you explore Laravel packages today?