Git Product home page Git Product logo

aws-s3-minio's Introduction

klinson/aws-s3-minio

Description

Flexible and feature-complete minio client for PHP, depend on aws/aws-sdk-php

Installation

composer require klinson/aws-s3-minio

How to use Minio to control object

Loading the library

require 'Minio/Autoloader.php';

Minio\Autoloader::register();

Connecting to Minio

$ObjectClient = new ObjectClient();
// Get the access url, expire at 60 second
$url = $ObjectClient->getObjectUrl($save_path, time() + 60);
// Parameters passed using a named array:
$minio_config = [
    'key' => 'minio-key',
    'secret' => 'minio-secret',
    'region' => '',
    'version' => 'latest',
    'endpoint' => 'http://127.0.0.1:9000',
    'bucket' => 'minio-bucket',
];
$ObjectClient = new ObjectClient($minio_config);

aws-s3-minio's People

Contributors

klinson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aws-s3-minio's Issues

方便介绍一下在aws-sdk-php基础上做了哪些增强么?

喜闻乐见。
之前我也用minio和aws-sdk-php还有flysystem做过试验,因为验证都问题解决不了,时间关系就丢一边了。
aws-sdk-php的逻辑相当复杂,我没有详细研究,貌似确实不能直接兼容minio。
不知道您在aws-sdk-php基础上做了哪些增强或改进?或者介绍一下这个repo的缘起?
非常感谢。

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.