New

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

alies-dev/laravel-supabase-flysystem

Laravel Flysystem adapter for Supabase Storage
6,679 3

Larablocks Analysis

alies-dev/laravel-supabase-flysystem works with Laravel 11 and 12 (latest release 1.0.1, Dec 3, 2025).

Recommendation checks

Use with care

Use with care: meets 0 of 4 checks.

  • Latest release doesn't support Laravel 13, the current version
  • No release in the last 12 months (last: Dec 3, 2025)
  • 25 downloads a month (needs 10,000)
  • 3 GitHub stars (needs 100)

State

Quiet
  • Last stable release: Dec 3, 2025.
  • No releases in the last 12 months.
  • First released: Mar 9, 2025.
  • Monthly downloads: 25.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.

Install
composer require alies-dev/laravel-supabase-flysystem
Latest Version:1.0.1
PHP:^8.2
Laravel:11 · 12
License:MIT
Last Updated:Nov 15, 2026
Links: GitHub  ·  Packagist
Maintainer: alies-dev

Laravel Supabase Flysystem

Total Downloads License Type coverage Tests codecov

A Laravel Flysystem adapter for Supabase Storage with proper handling of signed URLs and transform options.

Installation

You can install the package via composer:

composer require alies-dev/laravel-supabase-flysystem

The package will automatically register its service provider if you're using Laravel's package auto-discovery.

Configuration

Environment Variables

Add the following variables to your .env file:

SUPABASE_STORAGE_KEY=your-supabase-key
SUPABASE_STORAGE_BUCKET=your-bucket-name
SUPABASE_STORAGE_ENDPOINT=https://your-project-ref.supabase.co

Full Configuration Options

Add the following config to the disk array in config/filesystems.php:

'supabase' => [
    'driver' => 'supabase',
    'key' => env('SUPABASE_STORAGE_KEY'),
    'bucket' => env('SUPABASE_STORAGE_BUCKET'),
    'endpoint' => env('SUPABASE_STORAGE_ENDPOINT'),

    // Optional configuration
    'url' => env('SUPABASE_STORAGE_URL'), // Custom URL for public access
    'public' => env('SUPABASE_STORAGE_PUBLIC', false), // Set to true for public buckets

    'signed_url_ttl,' => 60 * 60 * 24, // Default TTL for signed URLs (1 day)
    'url_options' => [], // Default URL generation options supported by Supabase Storage (download, transform)
],

Usage

Basic Operations

// Store a file
Storage::disk('supabase')->put('path/to/file.jpg', $contents);

// Check if a file exists
if (Storage::disk('supabase')->exists('path/to/file.jpg')) {
    // File exists
}

// Get file contents
$contents = Storage::disk('supabase')->get('path/to/file.jpg');

// Delete a file
Storage::disk('supabase')->delete('path/to/file.jpg');

// Copy a file
Storage::disk('supabase')->copy('original.jpg', 'copy.jpg');

// Move/rename a file
Storage::disk('supabase')->move('old-name.jpg', 'new-name.jpg');

URL Generation

// Get a URL (signed or public based on configuration)
$url = Storage::disk('supabase')->url('path/to/file.jpg');

// Get a signed URL with default options
$signedUrl = Storage::disk('supabase')->temporaryUrl(
    'path/to/file.jpg',
    now()->addHour()
);

// Get a signed URL with custom transform options
$transformedUrl = Storage::disk('supabase')->url('path/to/file.jpg', [
    'transform' => [
        'width' => 100,
        'height' => 100,
        'format' => 'webp',
    ]
]);

// Get a signed URL with a download option
$downloadUrl = Storage::disk('supabase')->url('path/to/file.jpg', [
    'download' => true,
]);

Directory Operations

// Create a directory
Storage::disk('supabase')->makeDirectory('path/to/directory');

// Delete a directory and all its contents
Storage::disk('supabase')->deleteDirectory('path/to/directory');

// List contents of a directory
$files = Storage::disk('supabase')->files('path/to/directory');
$directories = Storage::disk('supabase')->directories('path/to/directory');

// List all files recursively
$allFiles = Storage::disk('supabase')->allFiles('path/to/directory');

Metadata Operations

// Get file size
$size = Storage::disk('supabase')->size('path/to/file.jpg');

// Get file mime type
$mimeType = Storage::disk('supabase')->mimeType('path/to/file.jpg');

// Get file last modified timestamp
$lastModified = Storage::disk('supabase')->lastModified('path/to/file.jpg');

Advanced Usage

Image Transformations

Supabase Storage supports image transformations for images. You can specify transformation options when generating URLs:

$url = Storage::disk('supabase')->url('path/to/image.jpg', [
    'transform' => [
        'width' => 300,
        'height' => 200,
        'resize' => 'cover', // 'cover', 'contain', or 'fill'
        'format' => 'webp',  // 'webp', 'png', 'jpg', etc.
        'quality' => 80,     // 1-100
    ]
]);

Temporary URLs

Generate URLs that expire after a specific time:

$url = Storage::disk('supabase')->temporaryUrl(
    'path/to/file.jpg',
    now()->addMinutes(30), // Expires in 30 minutes
    [
        'transform' => [
            'width' => 100,
            'height' => 100,
        ],
        'download' => true, // Force download
    ]
);

Testing

The package includes a comprehensive test suite that covers all major functionality:

composer test

All tests use Laravel's HTTP client fakes to mock Supabase API responses, ensuring no actual API calls are made during testing.

Changelog

Please refer to GitHub Releases for the changelog.

License

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

Credits

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
1.0.1 ^8.2 ^11.35 || ^12.0 MIT
1.0.0 ^8.2 ^11.35 || ^12.0 MIT
0.0.2 ^8.2 ^11.35 || ^12.0 MIT
0.0.1 ^8.2 ^11.35 || ^12.0 MIT