leafs/fs
leafs/fs is a lightweight filesystem package for Laravel that simplifies working with local and cloud disks. It offers clean helpers for reading, writing, uploading, and managing files while integrating with Laravel's Storage system, making common file operations more expressive and consistent acros...
league/flysystem or the framework-native filesystem layer.Storage facade and Flysystem adapters. For a Leaf-based product, this package is a candidate for a small, non-critical pilot.Consider it when:
Look elsewhere when:
Illuminate\Support\Facades\Storage and Flysystem directly; this package does not provide Laravel integration.Executive summary: leafs/fs is a small filesystem module for Leaf PHP, not Laravel. It could reduce custom file-handling code in a Leaf app, but its adoption is minimal—3 stars, 0 dependents—so it should not be treated as a strategic platform dependency. The recommended path is a time-boxed pilot or reference implementation, with a fallback to Flysystem or framework-native storage.
For engineering: Treat it as a thin wrapper and evaluate it against league/flysystem. Confirm PHP version compatibility, adapter coverage, error handling, path traversal protections, and test coverage before use. If adopted, isolate it behind an internal storage interface so it can be replaced without touching feature code.
For product: This package does not unlock new capabilities on its own. It supports a build-vs-buy decision for file storage. Approve only if the product is already on Leaf PHP, the use case is non-critical, and the team accepts ownership of a low-adoption dependency. Otherwise, standardize on the framework-native storage layer and revisit only if requirements become Leaf-specific.
How can I help you explore Laravel packages today?