公式パッケージ · フレームワーク
Hibira の使用状況を Laravel Pulse ダッシュボードに
接続数、メッセージ数、送信データ量をプランの上限と並べて表示し、Pulse の期間切り替えに合わせたグラフと、今もっとも利用の多いチャンネルを見せる Pulse カードです。
hibira-io/pulsePackagist ↗GitHub ↗
最速の方法:Hibira プラグインとプロンプト 1 つ
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.
- 現在の接続数と期間中のピークをプランの上限と、本日のメッセージ数を 1 日の上限と比べて表示するので、ユーザーより先に上限に気づけます。
- 購読者数の多い順に並べたチャンネル一覧。アプリのキーとシークレットで 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 トークンはこのアプリだけに限定し、読み取り権限だけを付けてください。カードは何も変更しません。
- アプリに Pulse ダッシュボードのビューがまだない場合は、先に php artisan vendor:publish --tag=pulse-dashboard を実行してください。
ダッシュボードのアプリキーを使ってください。シークレットはサーバー側だけに置きます。チャンネル、イベント、認可エンドポイントは Pusher とまったく同じように動作します。 無料でアカウントを作成 →