2017 © Pedro Peláez
 

library flysystem-aliyun-oss

This is a Flysystem adapter for the Aliyun OSS ~2.2.1

image

apollopy/flysystem-aliyun-oss

This is a Flysystem adapter for the Aliyun OSS ~2.2.1

  • Sunday, April 8, 2018
  • by apollopy
  • Repository
  • 1 Watchers
  • 56 Stars
  • 18,506 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 17 Forks
  • 1 Open issues
  • 7 Versions
  • 11 % Grown

The README.md

Flysystem Adapter for Aliyun OSS.

This is a Flysystem adapter for the Aliyun OSS ~2.3, (*1)

inspire by aobozhang/aliyun-oss-adapter, (*2)

Installation

composer require apollopy/flysystem-aliyun-oss

for Laravel

This service provider must be registered., (*3)

// config/app.php

'providers' => [
    '...',
    ApolloPY\Flysystem\AliyunOss\AliyunOssServiceProvider::class,
];

edit the config file: config/filesystems.php, (*4)

add config, (*5)

'oss' => [
    'driver'     => 'oss',
    'access_id'  => env('OSS_ACCESS_ID','your id'),
    'access_key' => env('OSS_ACCESS_KEY','your key'),
    'bucket'     => env('OSS_BUCKET','your bucket'),
    'endpoint'   => env('OSS_ENDPOINT','your endpoint'),
    'prefix'     => env('OSS_PREFIX', ''), // optional
],

change default to oss, (*6)

    'default' => 'oss'

Use

see Laravel wiki, (*7)

Plugins

inspire by itbdw/laravel-storage-qiniu, (*8)

Storage::disk('oss')->putFile($md5_path, '/local_file_path/1.png', ['mimetype' => 'image/png','filename' => 'filename_by_down.png']);

Storage::disk('oss')->signedDownloadUrl($path, 3600, 'oss-cn-beijing.aliyuncs.com', true);

IDE Helper

if installed barryvdh/laravel-ide-helper, (*9)

edit the config file: config/ide-helper.php, (*10)

'interfaces'      => [
    '\Illuminate\Contracts\Filesystem\Filesystem' => ApolloPY\Flysystem\AliyunOss\FilesystemAdapter::class,
],

The Versions

08/04 2018

dev-master

9999999-dev

This is a Flysystem adapter for the Aliyun OSS ~2.2.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar apollopy

10/01 2017

1.2.0

1.2.0.0

This is a Flysystem adapter for the Aliyun OSS ~2.0.4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar apollopy

02/02 2016

1.1.3

1.1.3.0

This is a Flysystem adapter for the Aliyun OSS ~2.0.4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar apollopy

28/01 2016

1.1.2

1.1.2.0

This is a Flysystem adapter for the Aliyun OSS ~2.0.4

  Sources   Download

The Requires

 

The Development Requires

by Avatar apollopy

28/01 2016

1.1.1

1.1.1.0

This is a Flysystem adapter for the Aliyun OSS ~2.0.4

  Sources   Download

The Requires

 

The Development Requires

by Avatar apollopy

21/01 2016

1.1.0

1.1.0.0

This is a Flysystem adapter for the Aliyun OSS ~2.0.4

  Sources   Download

The Requires

 

The Development Requires

by Avatar apollopy

20/01 2016

1.0.0

1.0.0.0

This is a Flysystem adapter for the Aliyun OSS ~2.0.4

  Sources   Download

The Requires

 

The Development Requires

by Avatar apollopy