srimaln91 / google-bucket-php-wrapper
There is no license information available for the latest version (1.3.0) of this package.
A PHP wrapper for Google bucket API functions
1.3.0
2018-06-06 06:03 UTC
Requires
- php: >=5.6
- google/cloud-storage: ^1.5
This package is not auto-updated.
Last update: 2025-03-29 02:04:55 UTC
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