2017 © Pedro Peláez
 

library aliyun-oss

Aliyun oss for Laravel5, also support flysystem adapter

image

orzcc/aliyun-oss

Aliyun oss for Laravel5, also support flysystem adapter

  • Monday, December 28, 2015
  • by orzcc
  • Repository
  • 2 Watchers
  • 30 Stars
  • 10,053 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 12 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Aliyun OSS adapter

Aliyun oss for Laravel5, also support flysystem adapter., (*1)

Installation

This package can be installed through Composer., (*2)

composer require orzcc/aliyun-oss

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

// config/app.php

'providers' => [
    '...',
    'Orzcc\AliyunOss\AliyunOssServiceProvider',
];

At last, you can edit the config file: config/filesystem.php., (*4)

add a disk config to the config, (*5)

'oss' => [
    'driver'       => 'oss',
    'access_id'    => 'Your oss access id',
    'access_key'     => 'Your oss access key',
    'bucket'         => 'Your project bucket on oss',
    'endpoint'     => '', // 青岛节点需要指定,杭州节点不需要
    'prefix'       => ''  // Path prefix, default can keep empty
],

change default to oss, (*6)

'default' => 'oss';

Usage

You can now use Laravel5's flysystem to upload or get file/directory from oss, follow the document, http://laravel.com/docs/5.0/filesystem, (*7)

The Versions

28/12 2015

dev-master

9999999-dev https://github.com/orzcc/aliyun-oss

Aliyun oss for Laravel5, also support flysystem adapter

  Sources   Download

MIT

The Requires

 

by Avatar orzcc

laravel aliyun flysystem oss