{"id":37236646,"url":"https://github.com/deva7mad/laravel-azure-storage","last_synced_at":"2026-01-16T04:53:36.751Z","repository":{"id":56966258,"uuid":"313306416","full_name":"deva7mad/laravel-azure-storage","owner":"deva7mad","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-16T14:13:49.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T23:15:01.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deva7mad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-16T13:10:56.000Z","updated_at":"2020-11-16T14:13:04.000Z","dependencies_parsed_at":"2022-08-21T11:20:23.542Z","dependency_job_id":null,"html_url":"https://github.com/deva7mad/laravel-azure-storage","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/deva7mad/laravel-azure-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deva7mad%2Flaravel-azure-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deva7mad%2Flaravel-azure-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deva7mad%2Flaravel-azure-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deva7mad%2Flaravel-azure-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deva7mad","download_url":"https://codeload.github.com/deva7mad/laravel-azure-storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deva7mad%2Flaravel-azure-storage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-15T04:15:58.417Z","updated_at":"2026-01-15T04:15:59.199Z","avatar_url":"https://github.com/deva7mad.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-azure-storage\n[![Build Status](https://travis-ci.org/deva7mad/laravel-azure-storage.svg?branch=master)](https://travis-ci.org/deva7mad/laravel-azure-storage)\n[![Coverage Status](https://coveralls.io/repos/github/deva7mad/laravel-azure-storage/badge.svg?branch=master)](https://coveralls.io/github/deva7mad/laravel-azure-storage?branch=master)\n\nMicrosoft Azure Blob Storage integration for Laravel's Storage API.\n\nThis is a custom driver for [Laravel's File Storage API](https://laravel.com/docs/8.x/filesystem), which is itself built on top of [Flysystem](https://flysystem.thephpleague.com/v1/docs/). It uses Flysystem's own Azure blob storage adapter, and so can't easily add any more functionality than that has - indeed, adding that would be out of scope for the project.\n\n# Installation\n\nInstall the package using composer:\n\n```bash\ncomposer require deva7mad/laravel-azure-storage\n```\n\nOn Laravel versions before 5.5 you also need to add the service provider to `config/app.php` manually:\n\n```php\n    Deva7mad\\LaravelAzureStorage\\AzureStorageServiceProvider::class,\n```\n\nThen add this to the `disks` section of `config/filesystems.php`:\n\n```php\n        'azure' =\u003e [\n            'driver'    =\u003e 'azure',\n            'name'      =\u003e env('AZURE_STORAGE_NAME'),\n            'key'       =\u003e env('AZURE_STORAGE_KEY'),\n            'container' =\u003e env('AZURE_STORAGE_CONTAINER'),\n            'url'       =\u003e env('AZURE_STORAGE_URL'),\n            'prefix'    =\u003e null,\n        ],\n```\n\nFinally, add the fields `AZURE_STORAGE_NAME`, `AZURE_STORAGE_KEY`, `AZURE_STORAGE_CONTAINER` and `AZURE_STORAGE_URL` to your `.env` file with the appropriate credentials. The `AZURE_STORAGE_URL` field is optional, this allows you to set a custom URL to be returned from `Storage::url()`, if using the `$root` container the URL will be returned without the container path. A `prefix` can be optionally used. If it's not set, the container root is used. Then you can set the `azure` driver as either your default or cloud driver and use it to fetch and retrieve files as usual.\n\nFor details on how to use this driver, refer to the [Laravel documentation on the file storage API](https://laravel.com/docs/7.x/filesystem).\n\n# Custom endpoints\n\nThe package supports using a custom endpoint, as in this example:\n\n```php\n        'azure' =\u003e [\n            'driver'    =\u003e 'azure',\n            'name'      =\u003e env('AZURE_STORAGE_NAME'),\n            'key'       =\u003e env('AZURE_STORAGE_KEY'),\n            'container' =\u003e env('AZURE_STORAGE_CONTAINER'),\n            'url'       =\u003e env('AZURE_STORAGE_URL'),\n            'prefix'    =\u003e null,\n            'endpoint'  =\u003e env('AZURE_STORAGE_ENDPOINT'),\n        ],\n```\n\nThen you can specify a suitable value for `AZURE_STORAGE_ENDPOINT` in your `.env` file as normal.\n\n# SAS token authentication\nWith SAS token authentication the endpoint is required. The value has the following format: `https://[accountName].blob.core.windows.net`\n```php\n        'azure' =\u003e [\n            'driver'    =\u003e 'azure',\n            'sasToken'  =\u003e env('AZURE_STORAGE_SAS_TOKEN'),\n            'container' =\u003e env('AZURE_STORAGE_CONTAINER'),\n            'url'       =\u003e env('AZURE_STORAGE_URL'),\n            'prefix'    =\u003e null,\n            'endpoint'  =\u003e env('AZURE_STORAGE_ENDPOINT'),\n        ],\n```\n\n# Caching\nThe package supports disk based caching as described in the [Laravel documentation](https://laravel.com/docs/filesystem#caching).\nThis feature requires adding the package `league/flysystem-cached-adapter`:\n```bash\ncomposer require league/flysystem-cached-adapter:^1.1\n```\n\nTo enable caching for the azure disk, add a `cache` directive to the disk's configuration options.\n```php\n        'azure' =\u003e [\n            'driver'    =\u003e 'azure',\n            // Other Disk Options...\n            'cache'     =\u003e [\n                'store' =\u003e 'memcached',\n                'expire' =\u003e 600,\n                'prefix' =\u003e 'filecache',\n            ]\n        ],\n```\n\n# Retries\nThe Azure Storage SDK ships a [middleware to retry](https://github.com/Azure/azure-storage-php#retrying-failures) failed requests.\nTo enable the retry middewalre, add a `retry` directive to the disk's configuration options.\n```php\n        'azure' =\u003e [\n            'driver'    =\u003e 'azure',\n            // Other Disk Options...\n            'retry'     =\u003e [\n                'tries' =\u003e 3,                   // number of retries, default: 3\n                'interval' =\u003e 500,              // wait interval in ms, default: 1000ms\n                'increase' =\u003e 'exponential'     // how to increase the wait interval, options: linear, exponential, default: linear\n            ]\n        ],\n```\n\n# Support policy\n\nThis package is supported on the current Laravel LTS version, and any later versions. If you are using an older Laravel version, it may work, but I offer no guarantees, nor will I accept pull requests to add this support.\n\nBy extension, as the current Laravel LTS version required PHP 7.0 or greater, I don't test it against PHP \u003c 7, nor will I accept any pull requests to add this support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeva7mad%2Flaravel-azure-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeva7mad%2Flaravel-azure-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeva7mad%2Flaravel-azure-storage/lists"}