I have an app that is poorly written is php "spaghetti code"
I need to implement a web-socket where I can use PHP to make calls to an API.
I tried to use Node.js but the problem is that there is many things that I need to check for using php.
I thought it will be easier if I have a PHP websocket setup instead of node.js where step 1 and 2 already handled by my APP and all I will is just to write a client code that will communicate with the websocket to retrieve the new messages.
It sound like Ratchet is a good way to go but not sure how to install it in my APP using the composer if my APP does not have a setup to use composer or autoloaders.
While I am working on a project to convert my app to Laravel 5.1, I am in an immediate need to implement the websocket to reduce the amount of the TCP connections that are sent to to my server.
How can I install Ratchet? is there alternative package I can use rather than using Ratchet if I Can't install it in my current environment?
Lol, user asks what a word means. Community responds by using that word in the definition....
I think the OP was looking for an alternative autoloader, or perhaps help with loading the files manually.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With