Skip to content

hareluya/laravel-aliyun-oss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun OSS adapter for Laravel

Inspired by orzcc/aliyun-oss

#WIP can't be used now Aliyun oss for Laravel5, also support flysystem adapter.

Installation

This package can be installed through Composer.

composer require orzcc/aliyun-oss

This service provider must be registered.

// config/app.php

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

At last, you can edit the config file: config/filesystem.php.

add a disk config to the config

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

change default to oss

'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

About

A Laravel 5 filesystem adapter from Aliyun SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages