New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

danhunsaker/laravel-flysystem-service

Automatically registers every Flysystem adapter it recognizes as a Laravel Filesystem Driver.
35,183 3
Install
composer require danhunsaker/laravel-flysystem-service
Latest Version:v3.0.0
Laravel:9 · 10
Older releases:5 – 8
License:MIT
Last Updated:Apr 30, 2023
Links: GitHub  ·  Packagist
Maintainer: danhunsaker

Laravel Flysystem Service

Software License Liberapay receiving

Latest Stable Version Latest Unstable Version Build Status Codecov Total Downloads

Registers recognized Flysystem adapters with Laravel automatically.

This lets you use other adapters without having to write your own service providers to load them properly. It automatically detects which adapters are available, and registers only the ones actually installed.

Note: This package only recognizes the adapters officially supported by The PHP League - for other adapters, install danhunsaker/laravel-flysystem-others instead (it will pull in this package as a dependency).

Installation

The usual methods for using Composer apply here:

composer require danhunsaker/laravel-flysystem-service

You do still have to register one service, but only one, and at least you don't have to write it. Be sure to REPLACE the Illuminate\Filesystem\FilesystemServiceProvider::class line with the new one:

// In config/app.php

    'providers' => [
        // ...
        Danhunsaker\Laravel\Flysystem\FlysystemServiceProvider::class,
        // ...
    ],

Setup

You can get example definitions for all supported filesystem drivers by publishing the replacement filesystems config - just run the following Artisan command:

php artisan vendor:publish --provider=Danhunsaker\\Laravel\\Flysystem\\FlysystemServiceProvider --force

The --force flag is required to overwrite the existing filesystems config that ships with Laravel. You can also rename the existing file, then run the command without the --force flag, if you'd like to preserve the existing contents for transfer to the new file.

Contributions

Pull requests, bug reports, and so forth are all welcome on GitHub.

Security issues should be reported directly to hennikhunsaker (plus) laraflyserv (at) gmail (dot) com.

And head to GitHub for everything else.

Related Packages

danhunsaker/laravel-flysystem-others

Automatically registers every third-party Flysystem adapter it recognizes as a L...

33,913 22
arquivei/flysystem-php

Arquivei Flysystem Adapters.

9,483 4
nvahalik/laravel-filer

An advanced wrapper over Flysystem for Laravel.

4,157 17
kigamba/laravel-tinker-tools

Use short class names in an Artisan tinker session -> Supports php 5

35 0
websight/l5-google-cloud-storage

Laravel 5 Flysystem Google Cloud Storage Service Provider

63,711 36

Version History

Version Released PHP Laravel License
v3.0.0 >= 9.0 MIT
v1.4.1 >= 5.0 MIT
v1.4.0 >= 5.0 MIT
v1.3 ^5.0 || ^6.0 MIT
v1.2.2 ^5.0 MIT