├── .github └── workflows │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── phpstan.neon ├── phpunit.xml ├── src ├── App.php ├── Conduit.php ├── Http.php ├── Ipc.php ├── Manager.php ├── Sandbox.php ├── Service.php ├── Watcher.php ├── Websocket.php ├── Worker.php ├── command │ └── Server.php ├── concerns │ ├── InteractsWithConduit.php │ ├── InteractsWithHttp.php │ ├── InteractsWithQueue.php │ ├── InteractsWithServer.php │ ├── InteractsWithWebsocket.php │ ├── ModifyProperty.php │ ├── WithApplication.php │ └── WithContainer.php ├── conduit │ ├── Driver.php │ └── driver │ │ ├── Socket.php │ │ └── socket │ │ ├── Command.php │ │ ├── Event.php │ │ ├── Result.php │ │ └── Server.php ├── config │ └── worker.php ├── contract │ ├── ResetterInterface.php │ └── websocket │ │ └── HandlerInterface.php ├── message │ └── PushMessage.php ├── protocols │ └── FlexHttp.php ├── resetters │ ├── ClearInstances.php │ ├── ResetConfig.php │ ├── ResetEvent.php │ ├── ResetModel.php │ ├── ResetPaginator.php │ └── ResetService.php ├── response │ ├── File.php │ ├── Iterator.php │ └── Websocket.php ├── watcher │ ├── Driver.php │ ├── Find.php │ └── Scan.php └── websocket │ ├── Event.php │ ├── Frame.php │ ├── Handler.php │ ├── Pusher.php │ ├── Room.php │ └── socketio │ ├── EnginePacket.php │ ├── Handler.php │ └── Packet.php └── tests ├── Pest.php ├── feature ├── HttpTest.php ├── QueueTest.php └── WebsocketTest.php └── stub ├── .env ├── app └── controller │ └── Index.php ├── config ├── app.php ├── cache.php ├── queue.php └── worker.php ├── public └── asset.txt ├── route └── app.php ├── runtime └── .gitignore └── think /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | vendor/ 3 | .idea/ 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/composer.json -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/phpstan.neon -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/App.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/App.php -------------------------------------------------------------------------------- /src/Conduit.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Conduit.php -------------------------------------------------------------------------------- /src/Http.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Http.php -------------------------------------------------------------------------------- /src/Ipc.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Ipc.php -------------------------------------------------------------------------------- /src/Manager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Manager.php -------------------------------------------------------------------------------- /src/Sandbox.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Sandbox.php -------------------------------------------------------------------------------- /src/Service.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Service.php -------------------------------------------------------------------------------- /src/Watcher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Watcher.php -------------------------------------------------------------------------------- /src/Websocket.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Websocket.php -------------------------------------------------------------------------------- /src/Worker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/Worker.php -------------------------------------------------------------------------------- /src/command/Server.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/command/Server.php -------------------------------------------------------------------------------- /src/concerns/InteractsWithConduit.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/concerns/InteractsWithConduit.php -------------------------------------------------------------------------------- /src/concerns/InteractsWithHttp.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/concerns/InteractsWithHttp.php -------------------------------------------------------------------------------- /src/concerns/InteractsWithQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/concerns/InteractsWithQueue.php -------------------------------------------------------------------------------- /src/concerns/InteractsWithServer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/concerns/InteractsWithServer.php -------------------------------------------------------------------------------- /src/concerns/InteractsWithWebsocket.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/concerns/InteractsWithWebsocket.php -------------------------------------------------------------------------------- /src/concerns/ModifyProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/concerns/ModifyProperty.php -------------------------------------------------------------------------------- /src/concerns/WithApplication.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/concerns/WithApplication.php -------------------------------------------------------------------------------- /src/concerns/WithContainer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/concerns/WithContainer.php -------------------------------------------------------------------------------- /src/conduit/Driver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/conduit/Driver.php -------------------------------------------------------------------------------- /src/conduit/driver/Socket.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/conduit/driver/Socket.php -------------------------------------------------------------------------------- /src/conduit/driver/socket/Command.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/conduit/driver/socket/Command.php -------------------------------------------------------------------------------- /src/conduit/driver/socket/Event.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/conduit/driver/socket/Event.php -------------------------------------------------------------------------------- /src/conduit/driver/socket/Result.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/conduit/driver/socket/Result.php -------------------------------------------------------------------------------- /src/conduit/driver/socket/Server.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/conduit/driver/socket/Server.php -------------------------------------------------------------------------------- /src/config/worker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/config/worker.php -------------------------------------------------------------------------------- /src/contract/ResetterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/contract/ResetterInterface.php -------------------------------------------------------------------------------- /src/contract/websocket/HandlerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/contract/websocket/HandlerInterface.php -------------------------------------------------------------------------------- /src/message/PushMessage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/message/PushMessage.php -------------------------------------------------------------------------------- /src/protocols/FlexHttp.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/protocols/FlexHttp.php -------------------------------------------------------------------------------- /src/resetters/ClearInstances.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/resetters/ClearInstances.php -------------------------------------------------------------------------------- /src/resetters/ResetConfig.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/resetters/ResetConfig.php -------------------------------------------------------------------------------- /src/resetters/ResetEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/resetters/ResetEvent.php -------------------------------------------------------------------------------- /src/resetters/ResetModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/resetters/ResetModel.php -------------------------------------------------------------------------------- /src/resetters/ResetPaginator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/resetters/ResetPaginator.php -------------------------------------------------------------------------------- /src/resetters/ResetService.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/resetters/ResetService.php -------------------------------------------------------------------------------- /src/response/File.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/response/File.php -------------------------------------------------------------------------------- /src/response/Iterator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/response/Iterator.php -------------------------------------------------------------------------------- /src/response/Websocket.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/response/Websocket.php -------------------------------------------------------------------------------- /src/watcher/Driver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/watcher/Driver.php -------------------------------------------------------------------------------- /src/watcher/Find.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/watcher/Find.php -------------------------------------------------------------------------------- /src/watcher/Scan.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/watcher/Scan.php -------------------------------------------------------------------------------- /src/websocket/Event.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/websocket/Event.php -------------------------------------------------------------------------------- /src/websocket/Frame.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/websocket/Frame.php -------------------------------------------------------------------------------- /src/websocket/Handler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/websocket/Handler.php -------------------------------------------------------------------------------- /src/websocket/Pusher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/websocket/Pusher.php -------------------------------------------------------------------------------- /src/websocket/Room.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/websocket/Room.php -------------------------------------------------------------------------------- /src/websocket/socketio/EnginePacket.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/websocket/socketio/EnginePacket.php -------------------------------------------------------------------------------- /src/websocket/socketio/Handler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/websocket/socketio/Handler.php -------------------------------------------------------------------------------- /src/websocket/socketio/Packet.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/top-think/think-worker/HEAD/src/websocket/socketio/Packet.php -------------------------------------------------------------------------------- /tests/Pest.php: -------------------------------------------------------------------------------- 1 |