Download the PHP package phpexperts/gcloud-auth without Composer

On this page you can find all versions of the php package phpexperts/gcloud-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gcloud-auth

Google Cloud Auth

[![TravisCI]()]() [![Maintainability]()]() [![Test Coverage]()]()

GCloud Auth is a PHP Experts, Inc., Project for authenticating with Google Cloud API without needing the huge gcloud binary.

As of April 2025, the google-cloud-cli weighs in at around 150 MB, not counting dependencies, and over 550 MB counting dependencies, on modern Linux systems.

Using the google/apiclient composer package itself weighs in at 141 MB.

This project, by comparison, weighs in around 10 KB (or 15,000x smaller).

It provides everything you need to retrieve an OAuth2 token for authenticating with Google Cloud API services. It autogenerates the JWT token necessary for this, using ext-openssl.

It includes a drop-in phpexperts/rest-speaker GoogleAuth driver, but it can also be used standalone by any PHP project.

Installation

Via Composer

Usage

For use with phpexperts/rest-speaker:

For use with any other PHP project:

Use cases

✔ Can authenticate with GCloud ✔ Handles invalid service account path ✔ Handles invalid service account data ✔ Handles error responses from Google Cloud ✔ Can override time for testing ✔ Will cache the OAuth2 Token until expiration ✔ Can synthesize speech using the GCloud API

Testing

Contributors

Theodore R. Smith [email protected]
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.

License

MIT license. Please see the license file for more information.


All versions of gcloud-auth with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-json Version *
ext-openssl Version *
phpexperts/rest-speaker Version ^v2.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phpexperts/gcloud-auth contains the following files

Loading the files please wait ....