larbrary/tawk
Composer 安装命令:
composer require larbrary/tawk
包简介
Website chat widget (tawk.to integration for Laravel).
关键字:
README 文档
README
The missing integration of tawk.to chat widget for Laravel.
Installation
Via Composer:
$ composer require larbrary/tawk
Laravel 5.5+ will use the auto-discovery function but for Laravel 5.4 and lower, you will need to include the service providers & facade manually in config/app.php:
'providers' => [ // ..., Larbrary\Tawk\TawkServiceProvider::class ]; // ... 'aliases' => [ // ..., 'Tawk' => Larbrary\Tawk\Facades\Tawk::class ];
Config
In the .env file, set the Property ID. For example, if the Direct Chat Link is https://embed.tawk.to/XXXXXXX/default, the .env file should contain the following:
TAWK_TO_PROPERTY_ID=XXXXXXX
If you're not using the default chat widget, provide a Widget ID. For example, if the Direct Chat Link is https://embed.tawk.to/XXXXXXX/5bc4ae1275bef, the .env file should contain the following:
TAWK_TO_WIDGET_ID=5bc4ae1275bef
If you're using the TAWK_API_KEY ( only needed for automatically registering authenticated users with the tawk chat client ), the .env file should contain the following:
TAWK_TO_API_KEY=your_tawk_api_key_goes_here
After making changes in the .env file, you might need to clear the compiled views:
php artisan view:clear
Usage
Simply use @tawk in your blade layout file just before the body closing tag ( </body> ):
<html> <head> <!-- ... --> </head> <body> <!-- ... --> @tawk </body> </html>
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details.
License
This package is released under the MIT license. Please see the license file for more information.
larbrary/tawk 适用场景与选型建议
larbrary/tawk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 09 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「chat」 「laravel」 「widget」 「support chat」 「tawk.to」 「tawkto」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 larbrary/tawk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 larbrary/tawk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 larbrary/tawk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This simple PHP class allows you to easily generate Smartsupp.com JS chat code.
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
Client for the REST API plugin of the OpenFire Server
Add a weather widget to Flarum
The Yii2 extension module to chat registered users.
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-09