BrainSocket icon


A Laravel package that allows you to get up and running with real-time event-driven PHP apps using WebSockets.


BrainSocket allows developers to quickly and easily deploy a WebSocket server running Laravel with a simple Artisan command. Combined with a lightweight JavaScript package, BrainSocket allows you to create a full event-loop driven application.

It's as simple as downloading the repository from packagist and running the Artisan command. Check out our GitHub for dev documentation.

Made at Brain Box by @andrewgwood.


  • WebSocket server with BrainSocket & Ratchet.
  • Client JS library so BrainSocket can share the love between client & server.
  • Integrated with Laravel, specifically for the Laravel Events package which creates a full loop driven event ecosystem.