srimaln91/google-bucket-php-wrapper

此包最新版本(1.3.0)没有可用的许可信息。

Google bucket API 函数的 PHP 包装器

1.3.0 2018-06-06 06:03 UTC

This package is not auto-updated.

Last update: 2024-09-27 23:27:13 UTC


README

一个用于处理 Google 云存储文件的 PHP 客户端库。

入门指南

请使用 composer 安装此库

composer require srimaln91/google-bucket-php-wrapper

用法

请查看以下示例 PHP 代码片段

<?php

require __DIR__ . '/vendor/autoload.php';

use Gbucket\FS\FileSystem;
use Gbucket\CloudFiles\FileOperations;

$authFile = 'path/to/authfile.json';
$bucketName = 'bucketname';

$uploadFileName = 'upload/to/here/myfile.png';
$uploadFilePath = 'path/to/file.png';

$gBucket = new FileOperations($bucketName, $authFile);
$gBucket->uploadFile($uploadFileName, FileSystem::getContents($uploadFilePath));

作者

  • H.M.S.Nishahtha
  • Gitlab 上找到我

许可

本项目采用 MIT 许可证 - 详细信息请参阅 LICENSE.md 文件