mrubiosan / flysystem-url
Flysystem URL generation from Cloud providers like Aws S3 and Azure Blob
Installs: 3 031
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.6
- league/flysystem: ^1.0
Requires (Dev)
Suggests
- league/flysystem-aws-s3-v3: Support for AWS S3
- league/flysystem-azure-blob-storage: Support for Azure Blob Storage
- superbalist/flysystem-google-storage: Support for Google Cloud Storage
This package is auto-updated.
Last update: 2021-10-01 00:17:51 UTC
README
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