PHPackages                             google/gax - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. google/gax

ActiveLibrary[API Development](/categories/api)

google/gax
==========

Google API Core for PHP

v1.42.1(2mo ago)265103.1M—4.8%59[2 issues](https://github.com/googleapis/gax-php/issues)[5 PRs](https://github.com/googleapis/gax-php/pulls)20BSD-3-ClausePHPPHP ^8.1CI passing

Since Jun 4Pushed 5d ago45 watchersCompare

[ Source](https://github.com/googleapis/gax-php)[ Packagist](https://packagist.org/packages/google/gax)[ Docs](https://github.com/googleapis/gax-php)[ RSS](/packages/google-gax/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (26)Versions (153)Used By (20)

Google API Core for PHP
=======================

[](#google-api-core-for-php)

[![Build Status](https://github.com/googleapis/gax-php/actions/workflows/tests.yml/badge.svg)](https://github.com/googleapis/gax-php/actions/workflows/tests.yml/badge.svg)

- [Documentation](https://cloud.google.com/php/docs/reference/gax/latest)

Google API Core for PHP (gax-php) is a set of modules which aids the development of APIs for clients based on [gRPC](http://grpc.io) and Google API conventions.

Application code will rarely need to use most of the classes within this library directly, but code generated automatically from the API definition files in [Google APIs](https://github.com/googleapis/googleapis/) can use services such as page streaming and retry to provide a more convenient and idiomatic API surface to callers.

PHP Versions
------------

[](#php-versions)

gax-php currently requires PHP 8.1 or higher.

Contributing
------------

[](#contributing)

Contributions to this library are always welcome and highly encouraged.

See the [CONTRIBUTING](https://github.com/googleapis/gax-php/blob/main/.github/CONTRIBUTING.md) documentation for more information on how to get started.

Versioning
----------

[](#versioning)

This library follows [Semantic Versioning](http://semver.org/).

This library is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in any minor or patch releases. We will address issues and requests with the highest priority.

Repository Structure
--------------------

[](#repository-structure)

All code lives under the src/ directory. Handwritten code lives in the src/ApiCore directory and is contained in the `Google\ApiCore` namespace.

Generated classes for protobuf common types and LongRunning client live under the src/ directory, in the appropriate directory and namespace.

Code in the metadata/ directory is provided to support generated protobuf classes, and should not be used directly.

Development Set-Up
------------------

[](#development-set-up)

These steps describe the dependencies to install for Linux, and equivalents can be found for Mac or Windows.

1. Install dependencies.

    ```
    > 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
    ```
2. Set up this repo.

    ```
    > cd /path/to/gax-php
    > composer install
    ```
3. Run tests.

    ```
    > composer test
    ```
4. Updating dependencies after changing `composer.json`:

    ```
    > composer update
    `
    ```
5. Formatting source:

    ```
    > composer cs-lint
    > composer cs-fix
    ```

License
-------

[](#license)

BSD - See [LICENSE](https://github.com/googleapis/gax-php/blob/main/LICENSE) for more information.

###  Health Score

80

—

ExcellentBetter than 100% of packages

Maintenance93

Actively maintained with recent releases

Popularity72

Solid adoption and visibility

Community54

Growing community involvement

Maturity90

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Recently: every ~15 days

Total

134

Last Release

59d ago

Major Versions

0.38.0 → 1.0.02019-03-27

0.38.1 → 1.0.32019-06-25

0.38.2 → 1.1.02019-08-06

v1.42.1 → 2.x-dev2026-03-20

PHP version history (6 changes)0.1.0PHP &gt;=5.5

v1.13.0PHP &gt;=5.6

v1.16.0PHP &gt;=7.0

v1.20.0PHP &gt;=7.4

v1.30.0PHP ^8.0

v1.37.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3901206952845568d7557a60855b097f6d1bafaa7a24020cfcf5bb8de74f9d28?d=identicon)[google-cloud](/maintainers/google-cloud)

---

Top Contributors

[![bshaffer](https://avatars.githubusercontent.com/u/103941?v=4)](https://github.com/bshaffer "bshaffer (140 commits)")[![michaelbausor](https://avatars.githubusercontent.com/u/14846209?v=4)](https://github.com/michaelbausor "michaelbausor (122 commits)")[![release-please[bot]](https://avatars.githubusercontent.com/in/40688?v=4)](https://github.com/release-please[bot] "release-please[bot] (57 commits)")[![dwsupplee](https://avatars.githubusercontent.com/u/2079879?v=4)](https://github.com/dwsupplee "dwsupplee (33 commits)")[![noahdietz](https://avatars.githubusercontent.com/u/6644735?v=4)](https://github.com/noahdietz "noahdietz (20 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (16 commits)")[![shinfan](https://avatars.githubusercontent.com/u/1514780?v=4)](https://github.com/shinfan "shinfan (10 commits)")[![jdpedrie](https://avatars.githubusercontent.com/u/89034?v=4)](https://github.com/jdpedrie "jdpedrie (9 commits)")[![garrettjonesgoogle](https://avatars.githubusercontent.com/u/13341017?v=4)](https://github.com/garrettjonesgoogle "garrettjonesgoogle (9 commits)")[![Hectorhammett](https://avatars.githubusercontent.com/u/9062626?v=4)](https://github.com/Hectorhammett "Hectorhammett (7 commits)")[![miraleung](https://avatars.githubusercontent.com/u/5384433?v=4)](https://github.com/miraleung "miraleung (7 commits)")[![saranshdhingra](https://avatars.githubusercontent.com/u/1038319?v=4)](https://github.com/saranshdhingra "saranshdhingra (5 commits)")[![vam-google](https://avatars.githubusercontent.com/u/25311427?v=4)](https://github.com/vam-google "vam-google (5 commits)")[![ajupazhamayil](https://avatars.githubusercontent.com/u/14087896?v=4)](https://github.com/ajupazhamayil "ajupazhamayil (4 commits)")[![alicejli](https://avatars.githubusercontent.com/u/65933803?v=4)](https://github.com/alicejli "alicejli (4 commits)")[![vishwarajanand](https://avatars.githubusercontent.com/u/7369612?v=4)](https://github.com/vishwarajanand "vishwarajanand (3 commits)")[![norberttech](https://avatars.githubusercontent.com/u/1921950?v=4)](https://github.com/norberttech "norberttech (3 commits)")[![yash30201](https://avatars.githubusercontent.com/u/54198301?v=4)](https://github.com/yash30201 "yash30201 (3 commits)")[![JustinBeckwith](https://avatars.githubusercontent.com/u/534619?v=4)](https://github.com/JustinBeckwith "JustinBeckwith (2 commits)")[![romanstingler](https://avatars.githubusercontent.com/u/5576250?v=4)](https://github.com/romanstingler "romanstingler (2 commits)")

---

Tags

google

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/google-gax/health.svg)

```
[![Health](https://phpackages.com/badges/google-gax/health.svg)](https://phpackages.com/packages/google-gax)
```

###  Alternatives

[google/apiclient

Client library for Google APIs

9.8k191.4M997](/packages/google-apiclient)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[google/grpc-gcp

gRPC GCP library for channel management

18497.8M3](/packages/google-grpc-gcp)[googleads/google-ads-php

Google Ads API client for PHP

3497.6M9](/packages/googleads-google-ads-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
