承接 mzur/laravel-openstack-swift 相关项目开发

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

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

mzur/laravel-openstack-swift

最新稳定版本:v2.2.0

Composer 安装命令:

composer require mzur/laravel-openstack-swift

包简介

OpenStack Swift storage driver for Laravel/Lumen.

README 文档

README

OpenStack Swift storage driver for Laravel/Lumen.

Installation

Require the package with Composer:

composer require mzur/laravel-openstack-swift

Laravel

This package is auto-discovered.

Lumen

Add the service provider to bootstrap/app.php:

$app->register(Mzur\Filesystem\SwiftServiceProvider::class);

Configuration

Add a new storage disk to config/filesystems.php (using v3 of the identity API):

'disks' => [
   'openstack' => [
      'driver'    => 'swift',
      'authUrl'   => env('OS_AUTH_URL', ''),
      'region'    => env('OS_REGION_NAME', ''),
      'user'      => env('OS_USERNAME', ''),
      'domain'    => env('OS_USER_DOMAIN_NAME', 'default'),
      'password'  => env('OS_PASSWORD', ''),
      'container' => env('OS_CONTAINER_NAME', ''),
   ],
]

Additional configuration options:

  • projectId (default: null) if you want to scope access to a specific project

  • debugLog (default: false), logger (default: null), messageFormatter (default: null) [ref]

  • requestOptions (default: []) [ref]

  • swiftLargeObjectThreshold [ref]

  • swiftSegmentSize [ref]

  • swiftSegmentContainer [ref]

  • root (default: null): Prefix to use for the names of the objects in the container.

  • url (default: null): Override URL to use for public URLs to objects. If this is not set, the public URL will point to the public URL of Swift. This configuration is useful if you use a reverse proxy to pass through requests to public Swift containers.

  • tempUrlKey: The account or container level key for temporary URLs. If set, support for temporary URLs is automatically enabled for the storage disk.

  • ttl: Override the duration the OpenStack authentication token should be cached (in seconds). Values that are longer than the expires_at of the token are ignored.

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-02