Official package · Frameworks

Hibira Live Chat for Laravel

Put the Hibira Live Chat widget on your Laravel site with one Blade component, and let signed-in users chat as themselves: their name and email reach your inbox, signed so nobody can pretend to be them.

Packagist versionLicense

Fastest way: one prompt with the Hibira plugin

Install the plugin in your AI coding agent and paste the prompt. The agent signs you in, creates a free app if you need one, writes the code and sends a test event. GitHub ↗

  1. Install the plugin

    claude plugin marketplace add hibira-io/agent-plugin
    claude plugin install hibira@hibira
  2. Paste this prompt

    Add Hibira Laravel Live Chat (hibira-io/laravel-live-chat) to this project.
    Follow https://hibira.io/guides/laravel-live-chat, adapted to how this project is already set up.
    If I have no Hibira app yet, create a Free one that allows http://localhost so I can test right away.
    Keep the app key and secret in environment variables, add placeholders to .env.example, and never commit real values or send the secret to a browser.
    When you are done, send a test event, show me it arriving, and list the files you changed.

Prefer to do it by hand? These are the steps below:

  1. Install
  2. Use it

Other AI tools and what the plugin includes →

  • <x-hibira-live-chat /> in your layout, or the InjectLiveChat middleware to add it to every page without touching your views.
  • Signed-in users are identified with an HMAC of their ID, so the inbox shows who they are and their conversations follow them between devices.
  • Your own buttons and #hibira-live-chat links open the chat; hide it per page or for staff with a gate, and it stays open across wire:navigate.

Sign in to see these snippets with your own cluster host. Sign in

  1. Install

    composer require hibira-io/laravel-live-chat
    php artisan hibira:live-chat --workspace=ws_YOUR_WORKSPACE
  2. Use it

    {{-- resources/views/layouts/app.blade.php, before </body> --}}
    <x-hibira-live-chat />
    
    <x-hibira-live-chat-open topic="sales">Talk to sales</x-hibira-live-chat-open>

Before you start

  • Find the workspace ID in the Live Chat console, and create an identity secret under Settings, Verified visitors. The identity secret stays on your server.
  • php artisan hibira:live-chat --check confirms the workspace exists and allows your APP_URL.

Use the app key from your dashboard; the secret stays on your server. Channels, events and authorization endpoints work exactly as they do with Pusher. Create your free account →