承接 orzcc/aliyun-oss 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

orzcc/aliyun-oss

Composer 安装命令:

composer require orzcc/aliyun-oss

包简介

Aliyun oss for Laravel5, also support flysystem adapter

README 文档

README

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'     => '', // 青岛节点需要指定,杭州节点不需要
    'prefix'       => ''  // Path prefix, default can keep empty
],

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

统计信息

  • 总下载量: 25.6k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 29
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 29
  • Watchers: 2
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-07