derafu/support
Derafu Support provides essential PHP utilities used across the Derafu core ecosystem. A lightweight helper package focused on common support functions, simplifying everyday development tasks and improving consistency in your applications.
Storage, ZipArchive, Carbon).Illuminate compatibility) may limit adoption without wrappers.ZipStream, CSV, and Mime are self-contained, allowing selective adoption without full package integration. However, no Laravel-specific features (e.g., queue workers, event listeners) mean manual integration is required for framework patterns.composer.json and increase maintenance.Storage, ZipArchive, Carbon)? What specific gaps does this package fill?Storage, ZipArchive, or Carbon.Assessment Phase:
ZipArchive vs. ZipStream).symfony/mime, league/csv).Pilot Integration:
ZipStream) in a non-critical module (e.g., report generation).app/Services/ZipService.php).namespace App\Services;
use Derafu\Support\ZipStream;
class ZipService {
public function create(string $path): ZipStream {
return new ZipStream($path);
}
}
Full Adoption:
File::zipDirectory()).pestphp/pest, and other dependencies support PHP 8.5. Use composer validate to catch version mismatches.AppServiceProvider.Collection macro).Derafu\Support\Collection.Mime for file type detection in upload handlers.ZipStream for memory-efficient ZIP generation.Derafu\Support\CsvReader.Carbon alias to use Derafu’s extensions (if needed).Zip::create()).symfony/mime) may require version alignment.ZipStream or CSV operations on large files may need optimization (e.g., chunking).How can I help you explore Laravel packages today?