for Google Cloud Platform
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Add CloudStorage Apr 14, 2017
.editorconfig Add .editorconfig Apr 14, 2017
.gitignore Add CloudStorage Apr 14, 2017
LICENSE Initial commit Apr 14, 2017
README.md Add .editorconfig Apr 14, 2017
composer.json Add CloudStorage Apr 14, 2017

README.md

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