exercisebook/flysystem-imagex

ImageX adapter for Flysystem

1.1.0 2023-07-14 06:21 UTC

This package is auto-updated.

Last update: 2024-08-14 15:52:44 UTC


README

概述

ImageX 的 Flysystem 兼容层接口

准备

  • 创建 ImageX 服务并且服务能够使用。
  • 确保服务已经开启了原地址访问。
    该功能在服务设置里开启
  • ImageX 类型为图像存储服务的服务,默认只允许上传图像,如果要在图像存储服务中存储其他类型的文件需要 提工单 申请开启。
    工单信息:
    • 问题类型:图片解决方案 / 功能配置
    • 问题描述:PHP框架源地址访问配置

配置

  1. 通过 Composer 安装本库

        composer require exercisebook/flysystem-imagex
    
  2. 创建 ImageXAdapter 对象

    $imageX = new ImageXAdapter([
                                      'region' => 'Region',             // 如:cn-north-1
                                      'access_key' => 'Access Key',
                                      'secret_key' => 'Secret Key',
                                      'service_id' => 'Service ID',
                                      'domain' => 'Binding Domain'      // 填写该图片服务所绑定的域名如 imagex.superexercisebook.com。推荐以 https:// 开头。该值用来拼接 url。
                               ]);