Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quioteframework/cloud-gcs

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.

About

Minimal Google Cloud Storage client for Quiote — HMAC-signed get/put/delete against a single bucket via the S3-compatible interoperability API. Shared by the GCS session and filesystem backends.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages