Skip to content

marko-php/marko-filesystem-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/filesystem-s3

S3 filesystem driver — stores files in Amazon S3 or any S3-compatible service with URL generation and pre-signed URLs.

Installation

composer require marko/filesystem-s3

This automatically installs marko/filesystem and aws/aws-sdk-php.

Quick Example

use Marko\Filesystem\Manager\FilesystemManager;

class MediaService
{
    public function __construct(
        private FilesystemManager $filesystemManager,
    ) {}

    public function upload(string $path, string $contents): void
    {
        $this->filesystemManager->disk('s3')->write($path, $contents);
    }
}

Documentation

Full usage, API reference, and examples: marko/filesystem-s3

About

[READ-ONLY] S3 filesystem driver for Marko Framework. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages