官方包 · 框架
Statamic 控制台的实时协作
看到还有谁打开着同一篇内容、有人保存时立即收到提醒、实时留言,并用二维码在手机上打开实时预览。适用于 Statamic 5 和 6,flat file 或数据库均可。
hibira-io/statamicPackagist ↗GitHub ↗
- 显示同一篇内容上每个人的头像,有人保存时弹出提醒,不会有人继续编辑旧版本。
- 在内容上实时留言,只能查看的审稿人也能留言。留言保存为 JSON 文件,无需数据库。
- 每次频道订阅和留言都会按 Statamic 自身的权限检查,Statamic 内置的 Echo 客户端(statamic/collaboration)也能直接在上面运行。
登录后,示例代码会自动填入您的集群主机。 登录
安装
composer require hibira-io/statamic php artisan hibira:install php artisan hibira:check使用
Open an entry in two browsers, signed in as two users: the dock with avatars and comments appears in the bottom right corner. Open Live Preview once, then press the phone button for a QR code that opens the preview on another device.
开始之前
- 应用密钥只会在创建应用或轮换密钥时显示一次。请只放在服务器上,不要放进浏览器或游戏的构建包。
- 把网站地址(例如 https://example.com)加入应用的“允许的来源”,控制台和预览页面才能连接。
请使用控制台中应用的 Key;Secret 只放在你的服务器上。频道、事件与授权端点的用法与 Pusher 完全相同。 免费创建账号 →