srimaln91 / google-bucket-php-wrapper
A PHP wrapper for Google bucket API functions
Installs: 573
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/srimaln91/google-bucket-php-wrapper
Requires
- php: >=5.6
- google/cloud-storage: ^1.5
This package is not auto-updated.
Last update: 2025-09-27 04:40:37 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