Server-side coffee-making script
You'll also need a server-side coffee-making script, which will brew coffee anytime it gets a request.
This is the PHP script that makes coffee. You'll send all the coffee orders to this script for brewing.
This script can handle the brewing for both coffee makers, since two cups can be brewing at the same time in the app.