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

otobank/gcputils-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);