otobank/gcputils

v1.0.0 2017-04-14 04:46 UTC

This package is auto-updated.

Last update: 2024-10-18 21:39:38 UTC


README

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