Download the PHP package axinter/azureblobstorage without Composer
On this page you can find all versions of the php package axinter/azureblobstorage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download axinter/azureblobstorage
More information about axinter/azureblobstorage
Files in axinter/azureblobstorage
Package azureblobstorage
Short Description Azure Blob Storage integration for Symfony and Laravel
License MIT
Informations about the package azureblobstorage
Azure Blob Storage for PHP
A modern PHP library for interacting with Azure Blob Storage, designed for seamless integration with Symfony and Laravel applications.
Features
- 🚀 Simple API - Intuitive methods for common blob operations
- 📦 Framework Agnostic - Works with Symfony, Laravel, or any PHP project
- 🔄 Version Control - Built-in blob versioning support (custom implementation for Azurite)
- 📁 Container Management - Create, delete, and check container existence
- 📊 Metadata Support - Set and retrieve custom metadata on blobs
- 🌊 Stream Support - Upload and download large files using streams
- 🔐 Secure Authentication - Shared Key authentication using azure-oss/storage
Requirements
- PHP 8.1 or higher
- Guzzle HTTP client 7.0+
- Azure Storage account or Azurite emulator
Installation
Install via Composer:
Configuration
Basic Setup
Create a configuration object using your Azure Storage connection string:
Azurite (Local Development)
Usage
Container Operations
File Operations
Upload Files
Download Files
File Management
List Files
Metadata
Version Control
The library includes custom version control for blob storage (particularly useful with Azurite which doesn't support native versioning):
Exception Handling
The library provides specific exceptions for different error scenarios:
API Reference
FileSystem Methods
| Method | Parameters | Returns | Description |
|---|---|---|---|
write() |
string $path, string $contents |
bool |
Write content to a blob |
read() |
string $path |
?string |
Read blob content |
delete() |
string $path |
bool |
Delete a blob |
exists() |
string $path |
bool |
Check if blob exists |
copy() |
string $source, string $dest |
bool |
Copy a blob |
move() |
string $source, string $dest |
bool |
Move a blob |
list() |
string $prefix = '' |
array |
List blobs with optional prefix |
getSize() |
string $path |
?int |
Get blob size in bytes |
getMimeType() |
string $path |
?string |
Get blob MIME type |
getUrl() |
string $path |
string |
Get blob URL |
writeStream() |
string $path, resource $stream |
bool |
Upload from stream |
readStream() |
string $path |
resource\|null |
Download as stream |
setMetadata() |
string $path, array $metadata |
bool |
Set blob metadata |
getMetadata() |
string $path |
?array |
Get blob metadata |
listVersions() |
string $path |
array |
List all versions of a blob |
getVersion() |
string $path, string $versionId |
?string |
Get specific version content |
restoreVersion() |
string $path, string $versionId |
bool |
Restore a previous version |
deleteVersion() |
string $path, string $versionId |
bool |
Delete a specific version |
Testing
Run the test suite:
License
MIT License - see LICENSE file for details
Author
- Joakim Stenberg - AxInter
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues and feature requests, please use the GitHub issue tracker