Introduction
PHP is great. It's easy. It's flexible. It's open source. However, it's not always fast, it's not asynchronous, and it's hard to work with things like websockets.
A runtime would be a great way to make it easy to work with things like websockets, and it also eliminates bootstrapping the application on every request. Sounds great right!? Exactly!
The development of the Runtime Component is just getting started. It's not ready for production yet, but it's ready for you to try it out. At the moment it exists of four components:
#
UsageThe Runtime can be started by running the command below. Since it's a runtime, it will keep running until you stop it. Once you stop it, the runtime will stop and the sockets will be closed.
#
Starting the RuntimeThis should give you an output somewhat like this: