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

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

azure-oss/storage-file-share
============================

Azure Storage File Share PHP SDK

0.1.1(today)01↑2900%MITPHPPHP ^8.2

Since Jun 27Pushed todayCompare

[ Source](https://github.com/php-oss-for-azure/azure-storage-file-share-php)[ Packagist](https://packagist.org/packages/azure-oss/storage-file-share)[ RSS](/packages/azure-oss-storage-file-share/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Azure Storage File Share PHP SDK
================================

[](#azure-storage-file-share-php-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/85b6ab2baf31d2e5c37f855ed4c3b1726fdfae16c8f574fbb827d1538eb476c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617a7572652d6f73732f73746f726167652d66696c652d73686172652e737667)](https://packagist.org/packages/azure-oss/storage-file-share)[![Packagist Downloads](https://camo.githubusercontent.com/302506feaa17896de07eb9426ed23448195403923be5f42f3b3931ca240e660d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617a7572652d6f73732f73746f726167652d66696c652d7368617265)](https://packagist.org/packages/azure-oss/storage-file-share)

A PHP SDK for Azure File Share management and service operations that are not exposed through standard SMB or NFS mounts.

Important

This package is community-maintained and is not affiliated with, endorsed by, or supported by Microsoft.

Install
-------

[](#install)

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

Scope
-----

[](#scope)

This package is not intended to replace an SMB or NFS mount.

If an operation is already handled well through a mounted Azure File Share, it is out of scope for this SDK. That includes routine filesystem-style work such as creating directories, reading files, writing files, renaming paths, and deleting content through the mounted share.

The purpose of this package is the opposite boundary: it should cover Azure Files capabilities that are not available through a normal mount, or are not practical to manage through one. That includes Azure-specific management, metadata, protocol-specific service features, and other control-plane or service-plane operations that need the Azure Files API rather than ordinary filesystem calls.

In short:

- Use **SMB** or **NFS** mounts for normal file and directory manipulation.
- Use `azure-oss/storage-file-share` for Azure Files features that a mount does not expose.

SAS generation
--------------

[](#sas-generation)

This package includes a minimal client hierarchy and File Share service SAS builder for share and path-based SAS URIs.

SAS generation requires a `StorageSharedKeyCredential`. Clients created from a SAS-only connection string can use that SAS, but they cannot generate a new SAS.

`UseDevelopmentStorage=true` is not supported for this package. Azurite does not currently provide Azure Files endpoints, so File Share clients must target a real File service endpoint.

Azure Files service SAS distinguishes share (`sr=s`) and file (`sr=f`) resources. When you generate a SAS from a `ShareDirectoryClient`, the directory path is signed using the file-path form, matching the current Azure .NET SDK behavior.

```
use AzureOss\Storage\File\Share\Sas\ShareFileSasPermissions;
use AzureOss\Storage\File\Share\Sas\ShareSasBuilder;
use AzureOss\Storage\File\Share\ShareServiceClient;

$service = ShareServiceClient::fromConnectionString($_ENV['AZURE_STORAGE_CONNECTION_STRING']);

$file = $service
    ->getShareClient('documents')
    ->getDirectoryClient('reports/2026')
    ->getFileClient('summary.txt');

$sasUri = $file->generateSasUri(
    ShareSasBuilder::new()
        ->setPermissions(new ShareFileSasPermissions(read: true))
        ->setExpiresOn(new DateTimeImmutable('+15 minutes')),
);
```

Related packages
----------------

[](#related-packages)

- **[azure-oss/storage](https://packagist.org/packages/azure-oss/storage)** — Meta package for the Storage SDKs
- **[azure-oss/storage-common](https://packagist.org/packages/azure-oss/storage-common)** — Shared authentication, HTTP, and SAS primitives
- **[azure-oss/storage-blob](https://packagist.org/packages/azure-oss/storage-blob)** — Blob Storage SDK
- **[azure-oss/storage-blob-flysystem](https://packagist.org/packages/azure-oss/storage-blob-flysystem)** — Flysystem adapter
- **[azure-oss/storage-blob-flysystem-bundle](https://packagist.org/packages/azure-oss/storage-blob-flysystem-bundle)** — Symfony Flysystem bundle
- **[azure-oss/storage-blob-laravel](https://packagist.org/packages/azure-oss/storage-blob-laravel)** — Laravel filesystem driver
- **[azure-oss/storage-queue](https://packagist.org/packages/azure-oss/storage-queue)** — Queue Storage SDK
- **[azure-oss/storage-queue-laravel](https://packagist.org/packages/azure-oss/storage-queue-laravel)** — Laravel queue connector
- **[azure-oss/identity](https://packagist.org/packages/azure-oss/identity)** — Microsoft Entra ID token authentication

Maintenance
-----------

[](#maintenance)

This package is part of the community-maintained PHP OSS for Azure project. It is an independent project and is not affiliated with or endorsed by Microsoft.

License
-------

[](#license)

This project is released under the MIT License. See [LICENSE](./LICENSE) for details.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Every ~2 days

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46338bbcf0dbf08da67027f88190fc05bc7f722c1f639485cdbcfe610620fa30?d=identicon)[Brecht](/maintainers/Brecht)

---

Top Contributors

[![brecht-vermeersch-doqmind](https://avatars.githubusercontent.com/u/152960018?v=4)](https://github.com/brecht-vermeersch-doqmind "brecht-vermeersch-doqmind (14 commits)")

---

Tags

phpsdkfilestorageazureshare

### Embed Badge

![Health badge](/badges/azure-oss-storage-file-share/health.svg)

```
[![Health](https://phpackages.com/badges/azure-oss-storage-file-share/health.svg)](https://phpackages.com/packages/azure-oss-storage-file-share)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[azure-oss/storage

Azure Blob Storage PHP SDK

371.3M5](/packages/azure-oss-storage)[microsoft/azure-storage-common

This project provides a set of common code shared by Azure Storage Blob, Table, Queue and File PHP client libraries.

4317.5M6](/packages/microsoft-azure-storage-common)[microsoft/azure-storage-blob

This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage Blob APIs.

5516.8M70](/packages/microsoft-azure-storage-blob)[microsoft/azure-storage-file

This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage File APIs.

152.5M9](/packages/microsoft-azure-storage-file)[rsd/seafile-php-sdk

This is a PHP package for accessing Seafile Web API

3593.7k](/packages/rsd-seafile-php-sdk)

PHPackages © 2026

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