Real-time chatting and notifications in laravel 5(Laravel 5 中的实时聊天和通知)
问题描述
我需要在我的应用程序中实现实时聊天和实时通知.使用 laravel-5 的最佳方法是什么?向我推荐一些好的软件包或您对它们的专家意见.
I need to implement real-time chatting and real-time notifications in my application. What is the best way to do it using laravel-5? Suggest me some good packages or your expert views on them.
推荐答案
对于实时聊天,您需要使用异步 websockets.
For real time chat you need to use asynchronous websockets.
你可以试试这个库https://github.com/ratchetphp/Ratchet
laravel 5.2聊天
和这个项目github.com/asserchris/tutorial-laravel-4-real-time-chat
好的图书馆github.com/BrainBoxLabs/brain-socket
还有很棒的socket IO教程www.codetutorial.io/laravel-5-and-socket-io-tutorial/
also amazing tutorial with socket IO www.codetutorial.io/laravel-5-and-socket-io-tutorial/
使用 AJAX 和 Laravel 4 的视频示例https://www.youtube.com/watch?v=GLDjgbbBvOg
Video example with AJAX and laravel 4 https://www.youtube.com/watch?v=GLDjgbbBvOg
这篇关于Laravel 5 中的实时聊天和通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Laravel 5 中的实时聊天和通知
基础教程推荐
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 如何替换eregi() 2022-01-01
