darvinstudio/darvin-file-bundle
Filesystem or HttpClient components.HttpClient, Filesystem) directly in Laravel via symfony/http-client or symfony/filesystem.league/flysystem for storage agnosticism).config/packages/darvin_file.yaml).Storage facade, Filesystem).HttpClient, Filesystem, Validator.| Risk Area | Severity (Symfony) | Severity (Laravel) | Mitigation Strategy |
|---|---|---|---|
| Deprecation Risk | Medium | High | Fork/modernize or replace with league/flysystem + spatie/laravel-medialibrary. |
| Symfony Version Lock | High | N/A | Test against target Symfony version (e.g., 5.4+). |
| Laravel Incompatibility | N/A | Critical | Build a Laravel-compatible wrapper or avoid. |
| Security Vulnerabilities | Medium | Medium | Audit dependencies (e.g., symfony/http-client). |
| Maintenance Burden | Low | High | Deprioritize unless critical; prefer active packages. |
spatie/laravel-medialibrary (Laravel) or api-platform/file-upload (Symfony) better fit the roadmap?Filesystem?Storage facade?| Component | Symfony Fit | Laravel Fit | Notes |
|---|---|---|---|
| Framework | Native | Poor | Bundle is Symfony-first; Laravel would need a facade or rewrite. |
| Storage | Flexible | Limited | Supports S3/FTP/local; Laravel’s Filesystem may overlap. |
| Validation | Built-in | Custom | Uses Symfony Validator; Laravel would need laravel-validator. |
| Events | Yes | No | Symfony events (e.g., file.uploaded) wouldn’t map cleanly. |
| Queues | Yes | Yes | Could adapt for Laravel queues, but not natively supported. |
composer require darvinstudio/darvin-file-bundle
config/packages/darvin_file.yaml.aws-sdk).// app/Providers/DarvinFileServiceProvider.php
public function register() {
$this->app->singleton('darvin.file.manager', function () {
return new DarvinFileManager(
new SymfonyFilesystem(), // Mock Symfony components
config('darvin-file')
);
});
}
symfony/http-client and symfony/filesystem as drop-in replacements.Storage facade and Filesystem.spatie/laravel-medialibrary or intervention/image.league/flysystem for storage agnosticism.Storage, custom upload handlers).spatie/laravel-medialibrary).spatie/laravel-medialibrary).HttpClient for async uploads.laravel-queue).Filesystem).Storage facade (e.g., duplicate disk configurations).HttpClient supports async; Laravel would need custom queue workers.| Scenario | Impact (Symfony) | Impact (Laravel) | Mitigation |
|---|---|---|---|
| Bundle Abandoned | High (no updates) | Critical (wrapper breaks) | Fork or migrate to alternative. |
| **Sym |
How can I help you explore Laravel packages today?