官方套件 · 框架
在 Laravel Pulse 面板上看 Hibira 用量
一張 Pulse 卡片,把連線數、訊息數和傳送資料量與方案上限並列顯示,附上跟隨 Pulse 時段切換的走勢圖,以及此刻最熱門的頻道。
hibira-io/pulsePackagist ↗GitHub ↗
最快的方式:裝好 Hibira 外掛,貼上一段提示詞
在你的 AI 程式助手裝好外掛,再貼上提示詞。助手會幫你登入、需要時建立免費應用、寫好程式碼並送出測試事件。 GitHub ↗
安裝外掛
claude plugin marketplace add hibira-io/agent-plugin claude plugin install hibira@hibira貼上這段提示詞
Add Hibira Laravel Pulse (hibira-io/pulse) to this project. Follow https://hibira.io/guides/pulse, 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.
- 目前連線數與時段內高峰對照方案上限,今日訊息數對照每日上限,讓你比使用者更早發現快到上限。
- 依訂閱人數排序的最熱門頻道,用 app 的 key 與 secret 從 Channels HTTP API 讀取。
- 不會寫入 Pulse 的資料表:每次數值都從 Hibira 取得,並快取 60 秒。

登入後,範例程式碼會自動帶入您的叢集主機。 登入
安裝
composer require hibira-io/pulse設定
# A personal API token with read access, from https://hibira.io/portal/api-tokens HIBIRA_API_TOKEN=hkb_pat_... HIBIRA_APP_ID=YOUR_APP_ID # Optional: the key and secret turn on the channel list HIBIRA_APP_KEY=YOUR_APP_KEY HIBIRA_APP_SECRET=YOUR_APP_SECRET使用
{{-- resources/views/vendor/pulse/dashboard.blade.php --}} <x-pulse> <livewire:hibira.usage cols="6" rows="2" /> ... </x-pulse>
開始之前
- 請把 API token 限定在這個 app,且只給讀取權限:卡片不會變更任何東西。
- 如果你的 app 還沒有 Pulse 面板的 view,請先執行 php artisan vendor:publish --tag=pulse-dashboard。
請使用儀表板中的應用程式 Key;Secret 只放在你的伺服器上。頻道、事件與授權端點的用法和 Pusher 完全相同。 免費建立帳號 →