futureoriented/laravel-flysystem-azure 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

futureoriented/laravel-flysystem-azure

Composer 安装命令:

composer require futureoriented/laravel-flysystem-azure

包简介

Laravel Azure storage service provider

README 文档

README

Laravel Azure blob storage service provider

Only for blob storage!

Usage

  • Register service provider in config/app.php.
'providers' => [
    AzureStorageServiceProvider::class,
]

If you are using Laravel >= 5.5, provider registration could be done by Laravel automaticly.

  • Register disk in config/filesystem.php.
'disks' => [
    'azure'  => [
        'driver' => 'azure',
        'account' => [
            'name' => env('AZURE_ACCOUNT_NAME'),
            'key' => env('AZURE_ACCOUNT_KEY'),
        ],
        'blob-endpoint' => env('AZURE_BLOB_ENDPOINT'),
        'container' => 'my-container'
    ]
]

You can register multiple azure containers with different disk names:

'disks' => [
    'azure-reports' => [
        'driver' => 'azure',
        'account' => [
            'name' => env('AZURE_ACCOUNT_NAME'),
            'key' => env('AZURE_ACCOUNT_KEY'),
        ],
        'blob-endpoint' => env('AZURE_BLOB_ENDPOINT'),
        'container' => 'reports'
    ],
    
    'azure-images' => [
        'driver' => 'azure',
        'account' => [
            'name' => env('AZURE_ACCOUNT_NAME'),
            'key' => env('AZURE_ACCOUNT_KEY'),
        ],
        'blob-endpoint' => env('AZURE_BLOB_ENDPOINT'),
        'container' => 'images'
    ]
]
  • Set azure account and key.

  • Use Storage::disk('azure')->get().

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固