PHPackages                             azure-oss/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. azure-oss/storage

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

azure-oss/storage
=================

Azure Blob Storage PHP SDK

1.9.0(2mo ago)37985.0k—6.3%144MITPHPPHP ^8.1CI passing

Since Jul 6Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/Azure-OSS/azure-storage-php-blob)[ Packagist](https://packagist.org/packages/azure-oss/storage)[ RSS](/packages/azure-oss-storage/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (12)Used By (4)

Azure Storage PHP
=================

[](#azure-storage-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d50bef744b8327500d00d1f7dd90c11461ae4994e981119a53f57be0f8ad713f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617a7572652d6f73732f73746f726167652e737667)](https://packagist.org/packages/azure-oss/storage)[![Packagist Downloads](https://camo.githubusercontent.com/7912c891169f6b6e901a06b4b34bdc2fafbf3c569543f9d68134613488fc7fd9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617a7572652d6f73732f73746f72616765)](https://packagist.org/packages/azure-oss/storage)

Community-driven PHP SDKs for Azure, because Microsoft won't.

In November 2023, Microsoft officially archived their [Azure SDK for PHP](https://github.com/Azure/azure-sdk-for-php) and stopped maintaining PHP integrations for most Azure services. No migration path, no replacement — just a repository marked read-only.

We picked up where they left off.

[![Screenshot](https://camo.githubusercontent.com/4231ff59e3078111b9723a49fe9b1efdea82c0f3cb6242f7a3485c99a933f9cc/68747470733a2f2f617a7572652d6f73732e6769746875622e696f2f696d672f6c6f676f2e737667)](https://camo.githubusercontent.com/4231ff59e3078111b9723a49fe9b1efdea82c0f3cb6242f7a3485c99a933f9cc/68747470733a2f2f617a7572652d6f73732e6769746875622e696f2f696d672f6c6f676f2e737667)

Our other packages:

- **[azure-oss/storage-blob-flysystem](https://packagist.org/packages/azure-oss/storage-blob-flysystem)** – Flysystem adapter
    [![Downloads](https://camo.githubusercontent.com/6b4f681dda3cabb175b00ef63a78e52a86900ee8a0c72fcb9e02581a23e5316c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617a7572652d6f73732f73746f726167652d626c6f622d666c7973797374656d)](https://camo.githubusercontent.com/6b4f681dda3cabb175b00ef63a78e52a86900ee8a0c72fcb9e02581a23e5316c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617a7572652d6f73732f73746f726167652d626c6f622d666c7973797374656d)
- **[azure-oss/storage-blob-laravel](https://packagist.org/packages/azure-oss/storage-blob-laravel)** – Laravel filesystem driver
    [![Downloads](https://camo.githubusercontent.com/775d6da94256b6777ac7730929f4a2cc7aa847b21435e0545e4b65b343de0619/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617a7572652d6f73732f73746f726167652d626c6f622d6c61726176656c)](https://camo.githubusercontent.com/775d6da94256b6777ac7730929f4a2cc7aa847b21435e0545e4b65b343de0619/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617a7572652d6f73732f73746f726167652d626c6f622d6c61726176656c)

Features
--------

[](#features)

- Authentication:
    - Connection strings (access keys)
    - Shared key credentials
    - Shared access signatures (SAS) for delegated, time-limited access
    - Microsoft Entra ID (token-based authentication) via azure-oss/azure-identity
- Local development:
    - Supports the Azurite emulator
- Containers:
    - Create, delete, and list (including filtering by prefix)
    - Configure public access when creating a container
    - Read properties and manage metadata
- Blobs:
    - Upload from strings or streams, with transfer tuning for large uploads
    - Set common HTTP headers (content type, cache control, etc.)
    - Download via streaming and access response properties
    - Copy blobs (synchronous and asynchronous)
    - List blobs (flat, by prefix, and hierarchical listing) with page sizing
    - Delete blobs
    - Read properties and manage metadata
    - Blob index tags: set/get tags and query blobs by tags (account or container scope)
- SAS:
    - Generate SAS for blobs, containers, and the account (when using credentials that can sign SAS)

Documentation
-------------

[](#documentation)

You can read the documentation [here](https://azure-oss.github.io).

Install
-------

[](#install)

```
composer require azure-oss/storage
```

Quickstart
----------

[](#quickstart)

```
