azure-oss/storage-blob-flysystem
\Illuminate\Filesystem\FilesystemManager). This eliminates vendor lock-in and leverages Laravel’s existing configuration (e.g., config/filesystems.php).azure-oss/storage), allowing future expansion (e.g., Azure Queue Storage) without refactoring.Filesystem, FilesystemAdapter), requiring minimal code changes..env variables for connection strings, SAS tokens) via Laravel’s filesystems config.azure-oss/storage-blob-laravel provides a pre-configured Laravel driver, reducing boilerplate.filesystems.php support dynamic providers?filesystems.php supports this natively.local, s3, or gcs drivers.azure-oss/storage meta-package suggests potential for Queue/Table Storage later.composer require azure-oss/storage-blob-flysystem
Or use the Laravel-specific driver:
composer require azure-oss/storage-blob-laravel
config/filesystems.php:
'disks' => [
'azure' => [
'driver' => 'azure-blob',
'connection' => 'azure',
'container' => env('AZURE_BLOB_CONTAINER'),
'endpoint' => env('AZURE_BLOB_ENDPOINT', 'https://your-account.blob.core.windows.net'),
'sas_token' => env('AZURE_BLOB_SAS_TOKEN'),
],
],
Storage::disk('s3')->put(...) with Storage::disk('azure')->put(...).
For FlySystem direct usage:
use AzureOss\Storage\Blob\BlobAdapter;
$adapter = new BlobAdapter($connection, $container);
Filesystem and FilesystemAdapter interfaces.azure-oss/storage-queue.composer require azure-oss/storage-blob-flysystem:^1.0 for minor updates.Storage::disk('azure')->getAdapter()->getClient()->setLogging()) for debugging..env in production).$adapter->getClient()->getDebug()).| Failure Scenario | Mitigation | Detection |
|---|---|---|
| Azure Blob Storage outage | Local fallback disk or S3 multi-region replication. | Laravel Storage::disk()->exists() checks. |
| Authentication token expiration | Implement token rotation via Laravel tasks or Azure Managed Identity. | Azure\Storage\Blob\Exception logging. |
| Network latency | Use Azure Blob Storage hot tier or edge locations. | Monitor Storage::disk()->write() latency. |
| Permission denied (SAS token) | Rotate tokens via Laravel scheduler and audit logs. | Azure Activity Logs. |
| FlySystem adapter bug | Pin to a stable version or fork for critical fixes. | Unit tests for adapter methods. |
put, get, delete, url).How can I help you explore Laravel packages today?