How samuelilagan/thecornerrabbitmqphp_example works
This repository is a small set of PHP integration examples, not a single end-user application. Its clearest workflow is a command-line client sending a login request through the RabbitMQ library to a server-side request processor. Separate examples query MongoDB and fetch soccer-season data over HTTP. The excerpts do not show the RabbitMQ library internals or configuration files, so their behavior and wiring are not expanded here; the unrelated PHP language demo is omitted.
Main entry points: testRabbitMQServer.php Test server · testRabbitMQClient.php Test client · loginRequest.php RPC login client · rabbitMQLib.inc RabbitMQ library
Components 12
RabbitMQ examples
- Test client
testRabbitMQClient.php - RPC login client
rpc/loginRequest.php - Test server
testRabbitMQServer.php - Request processor
testRabbitMQServer.php - Login handler
testRabbitMQServer.php - RabbitMQ library
rabbitMQLib.inc
External data examples
- MongoDB query
mongoClient.php - MongoDB service
- Soccer data fetch
soccerData.php - Football data API
Shared helpers
- Path helper
path.inc - Host info helper
get_host_info.inc
Connections 13
- Test client → RabbitMQ library: sends request
testRabbitMQClient.php - RPC login client → RabbitMQ library: sends request
rpc/loginRequest.php - Test server → RabbitMQ library: processes requests
testRabbitMQServer.php - Test server → Request processor: registers callback
testRabbitMQServer.php - Request processor → Login handler: dispatches login
testRabbitMQServer.php - MongoDB query → MongoDB service: queries
mongoClient.php - Soccer data fetch → Football data API: fetches data
soccerData.php - Test client → Path helper: requires
testRabbitMQClient.php - Test client → Host info helper: requires
testRabbitMQClient.php - RPC login client → Path helper: requires
rpc/loginRequest.php - RPC login client → Host info helper: requires
rpc/loginRequest.php - Test server → Path helper: requires
testRabbitMQServer.php - Test server → Host info helper: requires
testRabbitMQServer.php