https://github.com/rizkhanriaz/gcs-php-utility
Command line PHP utility for Google bucket API functions
https://github.com/rizkhanriaz/gcs-php-utility
command-line-tool composer-commands gcs-bucket google-cloud-platform php-utility
Last synced: 4 months ago
JSON representation
Command line PHP utility for Google bucket API functions
- Host: GitHub
- URL: https://github.com/rizkhanriaz/gcs-php-utility
- Owner: rizkhanriaz
- License: mit
- Created: 2018-12-13T18:48:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T19:21:21.000Z (about 3 years ago)
- Last Synced: 2025-08-02T00:48:43.850Z (9 months ago)
- Topics: command-line-tool, composer-commands, gcs-bucket, google-cloud-platform, php-utility
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GCS PHP Utility
Command line PHP utility for Google bucket API functions. Which can be used to upload and download files within a folder
## Getting Started
This package is available on packagist. You can use the following command to add this package into your composer dependancies.
``` composer require rizkhan/gce-php-utility --dev ```
### Configuration
You need to create a config.yml file in your project root. Below is the default config file.
```
---
bucket:
name: your-bucket-name
key: "keys/key-filename.json"
syncfolder: "path/to/upload/and/download/dir/"
uploadfiletypes: "jpg,gif,png,PNG,jpeg"
```
### Upload to GCS Bucket
You can execute the below command to upload all files and subfolders
``` vendor/bin/console gcs:upload ```
### Download from GCS Bucket
You can execute the below command to Download all files and subfolders
``` vendor/bin/console gcs:download ```
## Authors
* **Rizkhan Riaz** -
[GitHub](https://github.com/rizkhanriaz)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details