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 Flysystem adapter for Windows Azure (Fork of league/flysystem-azure)
License MIT
Informations about the package flysystem-azure
Azure Blob custom filesystem for Laravel 5
This repo is fork of League\Flysystem\Azure
Why forked?
Need to integrate with L5 out of the box, and url method for Storage interface
All examples below L5 related.
How to install in Laravel 5 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
- 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.
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
- Flysystem azure adapter
- Feel free to send pull requests and issues.
All versions of flysystem-azure with dependencies
league/flysystem Version ~1.0
microsoft/azure-storage-blob Version ^1.0