Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (18 loc) · 393 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 393 Bytes

gcputils-php

for Google Cloud Platform

Installation

composer require otobank/gcputils

Usage

Cloud Storage

Generate signed URL to provide query-string auth'n to a resource

<?php

use GCPUtils\CloudStorage;

$storage = new CloudStorage();
$signedUrl = $storage->generateSignedUrl('/bucket/path/to/file.txt', time() + 86400);