ddrv/flysystem-macro-sd

flysystem adapter for ddrv/macro-sd

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

This package is auto-updated.

Last update: 2024-12-07 06:25:16 UTC


README

league/flysystem adapter for ddrv/macro-sd

Install

Install this library, your favorite psr-18 and psr-7 implementation

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

Usage

<?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);