Download the PHP package vask/laravel without Composer
On this page you can find all versions of the php package vask/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package laravel
Short Description Pusher-compatible websockets powered by vask.dev
License MIT
Homepage https://github.com/vask-dev/laravel
Informations about the package laravel
Vask for Laravel
Drop-in Laravel integration for Vask, Pusher-compatible WebSockets running on Cloudflare. Run php artisan vask:install to OAuth into your account, write PUSHER_* credentials to .env, and verify the connection in one go. The package also ships a webhook handler for channel, presence, and client events, a vask:doctor diagnostic command, and a local-only /_vask/demo page that proves the round-trip end-to-end.
Installation
Sign up (or sign in) and wire credentials into .env in one command:
This kicks off an OAuth device flow. You'll be shown a URL and a short code
to approve in your browser. Once approved, the command writes
PUSHER_* credentials to .env and runs vask:doctor to confirm the
configuration. No git config or local tokens are used to authenticate.
If you need to verify an existing setup at any time:
Try it in the browser
After vask:install, start your dev server and visit /_vask/demo. It's a
local-only page that subscribes to a private channel and lets you click emoji to
broadcast them, both via the server (POST to Laravel) and as Pusher client events
straight from the browser. It exercises the full round-trip (Laravel to Vask to
browser) and shows you the latency, so you can confirm both your server
credentials and the WebSocket leg without writing a single line of frontend code.
The demo route is only registered when app()->environment() === 'local'. To
turn it off entirely, set VASK_NO_DEMO=true in your .env.
Usage
Vask is a drop-in Pusher replacement, so use Laravel's standard broadcasting:
Webhooks
Register handlers in a service provider. The package auto-registers
POST /webhooks/vask the first time it sees a handler. No handler, no route:
The route is registered outside the web middleware group, so CSRF doesn't
apply. To customise: Vask::webhookPath('/api/vask-hooks') or
Vask::disableAutoWebhookRoute() to register your own.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Ashley Hindle
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel with dependencies
illuminate/contracts Version ^10.0||^11.0||^12.0||^13.0
pusher/pusher-php-server Version ^7.2
spatie/laravel-package-tools Version ^1.16