ddrv/flysystem-macro-sd

ddrv/macro-sd 的 flysystem 适配器

v1.0.0 2022-08-07 01:15 UTC

This package is auto-updated.

Last update: 2024-09-07 05:51:19 UTC


README

league/flysystem 的适配器,用于 ddrv/macro-sd

安装

安装此库,以及您喜欢的 psr-18psr-7 实现

composer require ddrv/flysystem-macro-sd:^1.0

使用方法

<?php

/**
 * @var \Psr\Http\Client\ClientInterface $httpCLient
 * @var \Psr\Http\Message\RequestFactoryInterface $requestFactory
 * @var \Psr\Http\Message\StreamFactoryInterface $streamFactory
 */

$adapter = new \Ddrv\Flysystem\MacroSd\MacroSdAdapter(
    $httpCLient,
    $requestFactory,
    $streamFactory,
    'https://your-macro-sd.host',
    'macro-sd-user',
    'macro-sd-password',
);

$filesystem = new \League\Flysystem\Filesystem($adapter);