Coder Social home page Coder Social logo

laravel-ibm-cos's Introduction

Laravel Custom Filesystem for IBM Cloud Object Storage

This is an IBM Cloud Object Storage Custom Filesystem for Laravel.

Installation

  • Install the package with Composer
composer require tavux/laravel-ibm-cos
  • Add \Tavux\IBMCloudObjectStorage\Laravel\IbmCloudObjectStorageProvider::class to providers in config/app.php

  • In your .env file, add these lines with your IBM Cloud storage parameters

IBM_COS_ACCESS_KEY_ID=<access_key>
IBM_COS_SECRET_ACCESS_KEY=<secret_access_key>
IBM_COS_DEFAULT_REGION=<region>
IBM_COS_BUCKET=<bucket>
IBM_COS_ENDPOINT=<endpoint>

Usage

This is an example of usage :

use Illuminate\Support\Facades\Storage;

Storage::disk('ibm-cos')->allFiles('/');

To know all the available methods, please have a look to the Laravel File Storage documentation.

laravel-ibm-cos's People

Contributors

selimtavukcuoglu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

laravel-ibm-cos's Issues

Package doesn't work with the newest version of aws/aws-sdk-php

Hello,
Yesterday I decided to update my packages for my Laravel project. During this update, package aws/aws-sdk-php was updated from version 3.173.16 to 3.175.0.

Now whenever I want to execute anything using Storage::disk("ibm-cos"), this error shows up:
Aws\S3\Exception\S3Exception with message 'Error executing "ListObjects" on "<BUCKETNAME>.https://s3.eu.cloud-object-storage.appdomain.cloud"; AWS HTTP error: cURL error 6: Could not resolve host: <BUCKETNAME>.https (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for <BUCKETNAME>.https://s3.eu.cloud-object-storage.appdomain.cloud'
Of course <BUCKETNAME> is replaced with a real name.

Downgrading the aws/aws-sdk-php package to the previously mentioned version solved the problem.

Is there any possibility of this getting fixed in the future?
Thanks for reading and have a nice day.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.