otobank/

gcputils

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

This package is auto-updated.

Last update: 2024-09-18 21:26:53 UTC


README

适用于 Google Cloud Platform

安装

composer require otobank/gcputils

用法

云存储

生成签名 URL 以向资源提供查询字符串认证

<?php

use GCPUtils\CloudStorage;

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