Skip to content

Rahul7raj/Google-Cloud-Storage-Firebase-Storage-API-Core-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google-Cloud-Storage-Firebase-Storage-API-in-Core-PHP

Using Google Cloud Storage or Firebase Storage APIs in core PHP code

Used API - https://github.com/googleapis/google-cloud-php-storage

Installation

To begin, install the preferred dependency manager for PHP, Composer.

Now to install just this component:

$ composer require google/cloud-storage

Or to install the entire suite of components at once:

$ composer require google/cloud

To generate a private key file for your service account:

  1. In the Firebase console, open Settings > Service Accounts.

  2. Click Generate New Private Key, then confirm by clicking Generate Key.

  3. Securely store the JSON file containing the key.

life cycle for auto file deletion

If you want to auto delete files after some time then follow this https://cloud.google.com/storage/docs/managing-lifecycles

Author

Rahul K Raj

About

Using Google Cloud Storage & Firebase Storage APIs in core PHP code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages