[英]Is it possible to create a web chat application in plain Laravel
I just started studying and learning about Laravel
Framework. 我刚刚开始学习和学习
Laravel
框架。 My programming originated from Java Desktop application programming and I have not tried any web framework
in the past. 我的编程源自Java Desktop应用程序编程,过去我没有尝试过任何
web framework
。 I've little knowledge with Javascript, some PHP, HTML and CSS
. 我对Javascript,
PHP, HTML and CSS
不太了解。
I would like to know if it's possible and advisable to create a chat application within a social network website I'm planning to create for school semester using Laravel. 我想知道是否有可能在我计划使用Laravel为学校学期创建的社交网络网站上创建聊天应用程序。
If it's not possible, what web programming language for a total web newbie like me can use? 如果不可能,那么像我这样的网络新手可以使用哪种网络编程语言?
I thought it would be best for me play around and learn Javascript because the coding style is a bit similar to Java. 我认为这对我来说是学习和学习Javascript的最佳选择,因为编码风格与Java有点相似。
I would like to create something similar with facebook's chat application. 我想用Facebook的聊天应用程序创建类似的东西。
I'd appreciate any suggestion and help. 我将不胜感激任何建议和帮助。
Thank you. 谢谢。
For such application you can use socket.io , based on node.js. 对于此类应用程序,您可以使用基于node.js的socket.io 。 The website offers a full tutorial to build a webchat.
该网站提供了构建网络聊天的完整教程。
You could do that in PHP using websockets, but it would be more complicated. 您可以使用websockets在PHP中执行此操作,但这会更加复杂。
My advice is to keep Laravel for the non-interactive parts of your application and use node.js where you need real-time features. 我的建议是使Laravel保持应用程序的非交互部分,并在需要实时功能的地方使用node.js。
It's more than possible. 这是不可能的。 Actually with the new 5.3 release, Laravel provides realtime app from scratch: https://laravel.com/docs/5.3/broadcasting
实际上,在新的5.3版本中,Laravel从头开始提供实时应用程序: https ://laravel.com/docs/5.3/broadcasting
You need a third party service like pusher, but it's pretty easy to implement. 您需要像pusher这样的第三方服务,但这很容易实现。
Go ahead and to dive in into the laravel worl, i can recommand https://laracasts.com/ 继续研究laravel世界,我可以推荐https://laracasts.com/
Have fun! 玩得开心! ;)
;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.