This is a simple web-based example of calling the Google Compute Engine API in PHP.
- Run
composer install
in this directory to install thegoogle/cloud-compute
library. - Follow Getting started with authentication to authenticate with Service Account credentials.
Run app.php on your web server:
php -S localhost:8080
Visit the website (http://localhost:8080/app.php) in your web browser.