quioteframework / cloud-gcs
Minimal Google Cloud Storage client for Quiote — HMAC-signed get/put/delete/head against a single bucket via the S3-compatible interoperability API, plus a signed-request method for operations it does not model itself. Shared by the GCS session and filesystem backends.
v3.0.1
2026-07-29 12:30 UTC
Requires
- php: >=8.5.0
- nyholm/psr7: ^1.8
- psr/http-client: ^1.0
- psr/http-message: ^2.0
README
Minimal Google Cloud Storage client for Quiote.
Quiote\Storage\Gcs\GcsClient talks to GCS through its S3-compatible interoperability API, so credentials are an HMAC key pair rather than a service-account JSON file, and no Google SDK is needed for get/put/delete on a single bucket.
Bring your own PSR-18 HTTP client.
Install
You normally do not install this directly — quioteframework/session-gcs and quioteframework/filesystem-gcs both depend on it.
composer require quioteframework/cloud-gcs
Use
$client = new \Quiote\Storage\Gcs\GcsClient( httpClient: $psr18Client, accessKey: getenv('GCS_HMAC_ACCESS_KEY'), secretKey: getenv('GCS_HMAC_SECRET'), bucket: 'my-bucket', );
License
MIT. See LICENSE.