Download the PHP package jeddsaliba/azure-blob-url-generator without Composer

On this page you can find all versions of the php package jeddsaliba/azure-blob-url-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package azure-blob-url-generator

Azure Blob URL Generator

A Laravel package that provides Azure Blob Storage URL generation with SAS (Shared Access Signature) tokens for Spatie Laravel Media Library.

This package extends Spatie's default URL generator to produce Azure Blob Storage URLs with SAS token authentication, enabling secure access to media files stored in Azure Blob Storage.

Requirements

Installation

Install the package via Composer:

Register the Service Provider

If you're using Laravel 11+, the service provider may be auto-discovered. Otherwise, add it to the providers array in config/app.php:

Configuration

1. Environment Variables

Add the following variables to your .env file:

Variable Description
AZURE_STORAGE_ENDPOINT The full URL of your Azure Storage account (e.g., https://mystorageaccount.blob.core.windows.net)
AZURE_STORAGE_CONTAINER The name of the blob container where media files are stored
AZURE_STORAGE_SAS_TOKEN The SAS token string (without the leading ?) for authenticated access

Note: Ensure your SAS token has appropriate permissions (e.g., r for read access) and is configured with a suitable expiration for your use case.

2. Configure Spatie Media Library

Update your Spatie Media Library configuration to use this package's URL generator. Publish the media library config if you haven't already:

Then, in config/media-library.php, set the custom URL generator:

3. Configure Your Filesystem

Add the Azure disk to config/filesystems.php:

Set your default media disk in config/media-library.php or via the MEDIA_DISK environment variable:

Usage

Once configured, media URLs are generated automatically when you call getUrl() or getTemporaryUrl() on your media items.

Basic Usage with Spatie Media Library

Generated URL Format

URLs are generated in the following format:

Example:

License

The MIT License (MIT). Please see the License File for more information.


All versions of azure-blob-url-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
spatie/laravel-medialibrary Version ^10.0|^11.0
azure-oss/storage-blob-laravel Version ^1.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeddsaliba/azure-blob-url-generator contains the following files

Loading the files please wait ...