Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

frutos93's avatar

Laravel Real-time Chat Package

Just created a Laravel package that is a real-time chat for users within the app. There are still a lot of things to improve and add.

https://packagist.org/packages/frutdev/laravchat

This is my first package so if you have any suggestions feel free to tell me. I'm all ears. Hope you like it and that you don't find the installation so tedious.

0 likes
5 replies
tisuchi's avatar

Good work.

Its my suggestion that, you use pusher, that is a paid service. It would be really nice if you can use that is open source alternative of pusher.

3 likes
frutos93's avatar

@tisuchi Considered pusher because of the accessibility it has with Laravel as well as the free plan that it has.

But it is indeed an option to make it work with socket.io, might do another package later for whichever the user would like to use.

frutos93's avatar

@tisuchi As I said, this is my first package and I do have several questions. Not sure if you could help me or not:

Why in the package it appears composer create-project frutdev/laravchat instead of composer require frutdev/laravchat ?

sutherland's avatar

@frutos93 you need to remove "type": "project", from your composer.json file.

My recommendations are to add tests, and not to separate Pusher/Socket.io into different packages, just make them interchangeable.

frutos93's avatar

@sutherland

Will change it later today then.

I will also check into tests, not sure how to implement them but will read docs. Thanks, and yeah, you're right, it would be better if they were interchangeable, but first I will complete it with pusher and after it is complete with more features I'll add Socket.io

Please or to participate in this conversation.