This is a simple web-based application to browse the contents of a bucket from the GCS upon user authentication.
It was built using the Google PHP cloud client library and jstree.
The storage-metabucket-javascript and storage-getting-started-php projects were used as a starting point.
This build was tested in PHP version 7.1 using the official PHP docker image php:7.1-apache
$ composer require google/cloud
$ composer require league/oauth2-google
Rename conf.demo.php to conf.php and fill in with your credentials information from OAuth 2.0 client credentials previously created on Google Developers APIs
Run the following command in the project directory:
$ docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:7.1-apache