srimaln91/google-bucket-php-wrapper
Composer 安装命令:
composer require srimaln91/google-bucket-php-wrapper
包简介
A PHP wrapper for Google bucket API functions
README 文档
README
A PHP client library to handle google cloud storage files.
Getting Started
Please use composer to install this
composer require srimaln91/google-bucket-php-wrapper
Usage
Please find below a sample PHP snipprt
<?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));
Authors
- H.M.S.Nishahtha
- Find me on Gitlab
License
This project is licensed under the MIT License - see the LICENSE.md file for details
统计信息
- 总下载量: 573
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-06-05