PHP, Is it possible to create WebSocket with CURL or etc basic tech?

  javascript, laravel, php, real-time

I want to make a websocket with PHP. Actually I just learn that technology and I need that. I want to get realtime data from web sites and Is it possible that with php like curl, get_file_contents or etc ?

Source: Ask PHP