# PHP Simple NIO Server **Repository Path**: xupaul/php-nio-server ## Basic Information - **Project Name**: PHP Simple NIO Server - **Description**: 利用socket_select实现的一个简单的NIO服务。 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 5 - **Created**: 2020-04-08 - **Last Updated**: 2022-07-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PHP Simple NIO Server #### Description Use socket_select to implement a simple NIO service in PHP. #### Software Architecture ``` graph TB A(user)-->B(cart) B-->C(product) B-->D(inventory) B-->E(promo) ``` #### Installation PHP required. #### Instructions * cart-server-demo guide 1. start other service 2.1 start product service 2.2 start inventory service 2.3 start promo service 3. start cart service (NIO server) 3. request cart service #### Run ```shell ## into directory $ cd cart-server-demo ## start inventory service $ php ./other_server.php 8081 inventory 4 ## start product service $ php ./other_server.php 8082 product 2 ## start promotion service $ php ./other_server.php 8083 promo 6 ## start cart service $ php ./nio_server.php ## or php ./../react-php-demo/react_nio_server.php ## reqeust $ php ./user_client.php ```