Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abbychau/phpmyserver
A program that starts multiple PHP development servers and load balances incoming requests between them using a round-robin algorithm.
https://github.com/abbychau/phpmyserver
go load-balancing php process-management round-robin web-development
Last synced: 11 days ago
JSON representation
A program that starts multiple PHP development servers and load balances incoming requests between them using a round-robin algorithm.
- Host: GitHub
- URL: https://github.com/abbychau/phpmyserver
- Owner: abbychau
- License: mit
- Created: 2023-01-06T17:22:34.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T17:32:51.000Z (9 months ago)
- Last Synced: 2024-10-11T12:51:03.500Z (about 1 month ago)
- Topics: go, load-balancing, php, process-management, round-robin, web-development
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Process Manager
This program starts multiple PHP development servers and load balances incoming requests between them using a round-robin algorithm. The PHP development servers listen on consecutive ports starting from a specified port number.
## Requirements
- Go 1.15 or later
- PHP 7.4 or later## Installation
1. Clone the repository:
```
git clone https://github.com/myusername/php-process-manager
```2. Build the program:
## Usage
```
./php-process-manager -process-port=8000 -balancer-port=9090
```The `process-port` flag specifies the starting port number for the PHP development servers. The `balancer-port` flag specifies the port number for the load balancer.
Alternatively, you can set the `PROCESS_PORT` and `BALANCER_PORT` environment variables before running the program. If the flags are not specified, the environment variables will be used. If neither the flags nor the environment variables are specified, the default values of 8000 and 9090 will be used, respectively.
## License
This program is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.