Ad

laravel-google-cloud-storage: Google Cloud Storage Filesystem

Provides a Flysystem adapter for Laravel to seamlessly interact with Google Cloud Storage, enabling file storage and retrieval.
Screenshot of Superbalist/laravel-google-cloud-storage homepage

laravel-google-cloud-storage bridges Laravel applications with Google Cloud Storage (GCS). It leverages the Flysystem abstraction to provide a familiar filesystem interface for interacting with GCS buckets. This allows developers to use standard Laravel file system operations, such as put, get, exists, and copy, without needing to write custom GCS API calls. It primarily uses the flysystem-google-cloud-storage library.

This package offers a straightforward integration with Google Cloud Storage, simplifying file storage solutions for Laravel applications. It provides a consistent API with Laravel's built-in filesystem, facilitating easy adoption. The package includes options for authentication using service account keys, environment variables, or GCP application credentials. It also supports custom storage API URIs for flexibility.

  • File Upload/Download: Standard Laravel file operations like put, get, copy, and move are available for GCS buckets.
  • Authentication Flexibility: Supports service account keys, environment variables, and GCP application credentials for authentication.
  • Public URL Generation: Provides a url() method to generate public URLs for files, compatible with Laravel's filesystem.
  • Configuration Options: Offers configuration options for bucket name, path prefix, and custom storage API URI.
  • Visibility Control: Allow setting a file's visibility (public/private).
  • Flysystem Compatibility: Leverages Flysystem for a consistent API and easy extension.
  • Error Handling: Provides clear error messages for authentication and other issues.

The project is actively maintained and has a stable release history. Recent commits indicate ongoing development and bug fixes. The project has a significant number of stars and forks on GitHub, suggesting a reasonably active community and a proven track record. The documentation is comprehensive and includes clear examples for common use cases.

Developers can use laravel-google-cloud-storage to easily store and manage files in Google Cloud Storage within their Laravel applications. It's beneficial for projects requiring scalable and cost-effective storage solutions, offering a reliable alternative to local file systems. It avoids the complexities of directly interacting with the Google Cloud Storage API, providing a high-level abstraction tailored for Laravel development.

Languages:
Summarize:
Share:
Stars
508
Forks
143
Issues
36
Created
9 years ago
Commit
4 years ago
License
MIT
Archived
Yes
Updated 10 days ago

Similar Repositories