PHPackages                             impratick/laravel-azure-blob-storage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. impratick/laravel-azure-blob-storage

ActiveProject[File &amp; Storage](/categories/file-storage)

impratick/laravel-azure-blob-storage
====================================

Azure Blob Storage Wrapper with prefix support for Laravel framework

1.0.0(6y ago)04.7k1[3 PRs](https://github.com/impratick/laravel-azure-blob-storage/pulls)MITPHPPHP ^7.2

Since May 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/impratick/laravel-azure-blob-storage)[ Packagist](https://packagist.org/packages/impratick/laravel-azure-blob-storage)[ RSS](/packages/impratick-laravel-azure-blob-storage/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Laravel Azure Blob Storage
==========================

[](#laravel-azure-blob-storage)

Laravel Azure Blob Storage wrapper for [Flysystem Azure Blob Storage](https://flysystem.thephpleague.com/docs/adapter/azure/) with prefix support and easy integration with [Spatie's Media Library](https://docs.spatie.be/laravel-medialibrary).

Package includes:

- A Service Provider for Laravel
    - Adding an `azure` disk for Laravel's File Storage abstraction of [Flysystem](https://github.com/thephpleague/flysystem)
- Integration with [Spatie's Media Library](https://docs.spatie.be/laravel-medialibrary) providing
    - A `AzureBlobUrlGenerator` ()

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require impratick/laravel-azure-blob-storage
```

Usage
-----

[](#usage)

The Service Provider is automatically registered on **Laravel &gt;= 5.5**.

Configure your disk in `config/filesystem.php`

```
    'disks' => [
        'azure' => [
            'driver'          => 'azure',
            'account'         => [
                'name' => env('AZURE_ACCOUNT_NAME'),
                'key'  => env('AZURE_ACCOUNT_KEY'),
            ],
            'endpoint-suffix' => env('AZURE_ENDPOINT_SUFFIX', 'core.windows.net'),
            'container'       => env('AZURE_CONTAINER', 'public'),
            'prefix'          => env('AZURE_BLOB_FOLDER_NAME', null),
        ]
    ]
```

Here `prefix` is needed if you have custom folder structure, if not then set to `null`

- project-storage
    - local/folders
    - staging/folders
    - production/folders

So as per above scenario value of `AZURE_CONTAINER` would be `project-storage` and `AZURE_BLOB_FOLDER_NAME` would be as per environment `(local/staging/production)` any.

For integration with Media Library
----------------------------------

[](#for-integration-with-media-library)

Install and configure [Media Library](https://docs.spatie.be/laravel-medialibrary/v7/installation-setup/).

Add the following to `config/medialibrary.php`

```
    'azure' => [
        'domain'    => 'https://' . env('AZURE_ACCOUNT_NAME') . '.blob.' . env('AZURE_ENDPOINT_SUFFIX') .
        '/' . env('AZURE_CONTAINER') .
        (env('AZURE_BLOB_FOLDER_NAME') ? '/' . env('AZURE_BLOB_FOLDER_NAME') : ''),
    ],

     /*
     * When urls to files get generated, this class will be called. Leave empty
     * if your files are stored locally above the site root or on s3.
     */
    'url_generator' => (env('MEDIA_DISK', 'public') == 'azure'
        ? Impratick\ExtendedAzureBlobStorage\MediaLibrary\UrlGenerator\AzureBlobUrlGenerator::class
        : null),
```

Changelog
---------

[](#changelog)

Please review [CHANGELOG](CHANGELOG.md) for more information.

Security
--------

[](#security)

If you discover any security related issues, please feel free to report at .

Credits
-------

[](#credits)

- [Flysystem](https://github.com/thephpleague/flysystem)
- [All Contributors](../../contributors)

This package was made based on [A skeleton repository for Spatie's PHP Packages](https://github.com/spatie/skeleton-php).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2247d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6824926?v=4)[Pratik Padia](/maintainers/impratick)[@impratick](https://github.com/impratick)

---

Top Contributors

[![impratick](https://avatars.githubusercontent.com/u/6824926?v=4)](https://github.com/impratick "impratick (9 commits)")

---

Tags

azureblobfilesystemlaravelstoragefilesystemlaravelstorageazurebloblaravel-azure-blob-storage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/impratick-laravel-azure-blob-storage/health.svg)

```
[![Health](https://phpackages.com/badges/impratick-laravel-azure-blob-storage/health.svg)](https://phpackages.com/packages/impratick-laravel-azure-blob-storage)
```

###  Alternatives

[sausin/laravel-ovh

OVH Object Storage driver for laravel

42161.8k](/packages/sausin-laravel-ovh)[steffjenl/laravel-azure-blob-storage

Microsoft Azure Blob Storage integration for Laravel's Storage API

11165.0k](/packages/steffjenl-laravel-azure-blob-storage)[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1212.5k](/packages/zing-laravel-flysystem-obs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
