Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report

google/gax v1.26.3

Google API Core for PHP
Package summary
Share
0
issues
0
licenses
Package created
31 May 2016
Version published
18 Jan 2024
Maintainers
1
Total deps
0
Direct deps
0
License
BSD-3-Clause
Generating a report...
Hold on while we generate a fresh audit report for this package.

Frequently Asked Questions

What does google/gax do?

The Google API Core for PHP, popularly known as google/gax, is a collection of modules that simplifies the development of APIs for clients based on Google API conventions and gRPC. This facilitates developers when interacting with Google API, by using services like page streaming and retry mechanisms to provide a more user-friendly and idiomatic API interface.

How do you use google/gax?

Utilizing google/gax in your PHP project can be done using the following steps:

  1. Install the necessary dependencies as appropriate for your operating system. For Linux, you can use the following commands:
cd ~/
sudo apt-get install php php-dev libcurl3-openssl-dev php-pear php-bcmath php-xml
curl -sS https://getcomposer.org/installer | php
sudo pecl install protobuf
  1. Set up the repository:
cd /path/to/gax-php
cp ~/composer.phar ./
php composer.phar install
  1. After installation, you can run the test to ensure everything is working as expected:
vendor/bin/phpunit --bootstrap tests/bootstrap.php tests

If you change composer.json, update the dependencies with this command:

php composer.phar update

To format your source code, use:

vendor/bin/phpcbf -s --standard=./ruleset.xml

and:

vendor/bin/phpcs -s --standard=./ruleset.xml

Usually, application code does not directly use most classes within google/gax. This library mostly aids code generated automatically from Google API's definition files.

Where are the google/gax docs?

google/gax's fully detailed and updated documentation can be found at https://googleapis.github.io/gax-php. Users are encouraged to consult this resource for deeper understanding and utilization of google/gax.