Download the PHP package ijin82/flysystem-azure without Composer
On this page you can find all versions of the php package ijin82/flysystem-azure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ijin82/flysystem-azure
More information about ijin82/flysystem-azure
Files in ijin82/flysystem-azure
Package flysystem-azure
Short Description Laravel 10+ adapter for Windows Azure (Fork/Hack of league/flysystem-azure)
License MIT
Informations about the package flysystem-azure
WARNING! 1.0.7.1 is the last version for Laravel 5+ and PHP7
Azure Blob custom filesystem for Laravel 10+ and PHP8
This solution is mostly hack around thephpleague/flysystem-azure-blob-storage
and requires 3+ version.
Tested with Laravel 10, probably supported Laravel 8 & 9, additional tests needed.
Check your solutions carefully before release.
Why forked?
Needed to integrate with L5+ out of the box, and url method for Storage interface.
How to install in Laravel application
Install package
Open config/app.php and add this to providers section
Open config/filesystems.php and add this stuff to disks section
Open your .env and add variables for your disk
- You can get AZURE_BLOB_SERVICE_URL variable from Properties section of your Storage account settings.
That is an url named PRIMARY BLOB SERVICE ENDPOINT or SECONDARY BLOB SERVICE ENDPOINT.
Same time that could be Azure CDN address (related to your endpoint) to use it as public address for files URL generation. - You can get AZURE_BLOB_STORAGE_ENDPOINT variable from Access keys section of your Storage account settings. That is named CONNECTION STRING
- AZURE_BLOB_STORAGE_CONTAINER1 is the name of your pre-created container, that you can add at Overview section of your Storage account settings.
Storage methods supported
REM Path related to container, you need file prefix only if you need subfolder inside container
How to upload file
How to get file URL
We got file name for selected disk (folder related if folder exists)
That is also working in blade templates like this
How to delete file
Mimetypes (this can be useful)
Sometimes you need to set up mime types manually (for CDN maybe) to get back correct mime type values. You can do that like this (couple types forced for example):
You can use wget to get response with headers including Content-Type
Additions
- Original repo is here
- How to use blob storage from PHP
- Feel free to send pull requests and issues.
All versions of flysystem-azure with dependencies
league/flysystem Version ^3.16.0
league/flysystem-azure-blob-storage Version ^3.28.0