/flysystem-url

Flysystem adapters to include a URL generating method

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Flysystem URL

Build Status Maintainability Test Coverage

Extends Flysystem adapters to include a URL generating method.

Supports:

  • AWS S3 (and providers with S3 compatible APIs)
  • Azure Blob Storage
  • Google Cloud Storage

Usage

$s3Client = new \Aws\S3\S3Client([//AWS client config...]);
$urlS3Adapter = new \Mrubiosan\FlyUrl\Adapter\UrlAwsS3Adapter($s3Client, 'mybucket');
$urlFilesystem = new \Mrubiosan\FlyUrl\Filesystem\UrlFilesystem($urlS3Adapter);

echo $urlFilesystem->getUrl('my/s3/file');

Available adapters:

  • Mrubiosan\FlyUrl\Adapter\UrlAwsS3Adapter
  • Mrubiosan\FlyUrl\Adapter\UrlAzureBlobStorageAdapter
  • Mrubiosan\FlyUrl\Adapter\UrlGoogleStorageAdapter