# GoogleCloudPlatform/php-docs-samples

A collection of samples that demonstrate how to call Google Cloud services from PHP.

Repository: https://github.com/GoogleCloudPlatform/php-docs-samples
Canonical: https://ross.abutalabs.com/products/php-docs-samples
Homepage: http://cloud.google.com/php
Language: PHP
License: Apache-2.0
License Family: permissive
Topics: samples
Last push: 2026-08-05T09:05:51+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 5021, "days_push": 28, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1049, forks 1039 (observed 2026-08-28T04:03:22.681388+00:00)

## What it is
A collection of PHP code samples demonstrating how to call Google Cloud services using the official PHP client libraries. It is maintained by Google as companion example code for the Google Cloud PHP documentation.

## Use cases
- learn how to call Google Cloud APIs from PHP
- find example code for using Cloud Storage, Firestore, or Pub/Sub in PHP
- get started with Google Cloud PHP client libraries
- copy working snippets for authenticating to Google Cloud services in PHP
- see best-practice patterns for deploying PHP apps on Cloud Run or App Engine

## When to choose
- you are building a PHP application on Google Cloud and want reference example code
- you need copy-paste samples for a specific Google Cloud service in PHP
- you are writing tutorials or docs that need verified PHP snippets

## When to avoid
- you need a production-ready framework or library rather than example code
- you use a language other than PHP
- you want an abstraction layer over Google Cloud APIs instead of raw client library usage

## Facets
- artifact type: learning-resource
- maturity: active
- function: sdk, developer-tools, cloud
- domain: cloud-computing, developer-tools, apis, documentation
- platform: php, cloud
- tags: code-samples, google-cloud, php, documentation-samples, tutorials

## Member repositories
- GoogleCloudPlatform/php-docs-samples (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:22.681388+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:00:27.036148+00:00, confidence not recorded.
  - readme: https://github.com/GoogleCloudPlatform/php-docs-samples (fetched 2026-08-28T04:03:22.681388+00:00, sha 202e55ba368e)
  - homepage: http://cloud.google.com/php (fetched 2026-08-29T13:01:43.499635+00:00, sha e19c2eaf34fa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
