thadico-platform/common-service

There is no license information available for the latest version (v1.4.1) of this package.

A package to handle storage services like S3 and R2 in Laravel, Audit log

v1.4.1 2025-05-10 03:28 UTC

This package is auto-updated.

Last update: 2025-05-10 04:01:05 UTC


README

A Laravel package that provides a unified interface to handle storage services like Amazon S3 and Cloudflare R2, with support for additional storage providers.

Installation

  1. Require the package using Composer:

    composer require thadico-platform/storage-service
    

Publish the configuration file using the following Artisan command:

php artisan storage:publish-config

Make sure you have the necessary environment variables in your .env file:

S3 Configuration

AWS_ACCESS_KEY_ID=your-aws-access-key AWS_SECRET_ACCESS_KEY=your-aws-secret-key AWS_DEFAULT_REGION=your-aws-region AWS_ENDPOINT=your-aws-endpoint

R2 Configuration

R2_ACCESS_KEY_ID=your-r2-access-key R2_SECRET_ACCESS_KEY=your-r2-secret-key R2_ENDPOINT=https://your-r2-endpoint.r2.cloudflarestorage.com

#public tag curl --fail-with-body --data tag=v1.2.7 --header "Deploy-Token: xxxxx" "https://git.toprate.io/api/v4/projects/179/packages/composer"