flowan / laravel-filesystem-http
This package is abandoned and no longer maintained.
No replacement package was suggested.
Filesystem HTTP Adapter for Laravel
Fund package maintenance!
v0.3.0
2024-05-20 13:09 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^11.7
- league/flysystem: ^3.8.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2025-09-18 13:11:09 UTC
README
This package provides a filesystem adapter for Laravel that allows you to use an HTTP API as a filesystem.
Installation
You can install the package via composer:
composer require flowan/laravel-filesystem-http
Usage
Put the following in your config/filesystems.php file:
<?php return [ 'disks' => [ // ... 'warehouse' => [ 'driver' => 'http', 'token' => env('WAREHOUSE_TOKEN'), 'url' => env('WAREHOUSE_URL'), 'public_url' => env('WAREHOUSE_PUBLIC_URL', env('WAREHOUSE_URL')), 'bucket' => env('WAREHOUSE_BUCKET'), 'include_bucket_prefix_in_url' => env('WAREHOUSE_INCLUDE_BUCKET_PREFIX_IN_URL', true), 'include_bucket_in_url' => env('WAREHOUSE_INCLUDE_BUCKET_IN_URL', true), 'throw' => false, ], ], ];
And add the following to your .env file:
WAREHOUSE_TOKEN=your-token WAREHOUSE_URL=https://cdn.example.com
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Todo
- Implement
readStreamandwriteStreammethods. - Implement
setVisibilitymethod.