spatie/laravel-directory-cleanup
Automatically delete old files from specified directories in Laravel. Configure per-path age limits (in minutes) via a published config file, then run cleanup to keep temp, cache, and upload folders tidy. Supports auto service provider registration in Laravel 5.5+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-data | 0.95 | Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. | 1,801 | 1,815 | 293 | 4M | 6 | 51.4 | 63.7 | MIT | 1 week ago | |
| spatie/laravel-queued-db-cleanup | 0.89 | Safely delete large numbers of Laravel database records by dispatching non-overlapping queued cleanup jobs. Deletes in small chunks to reduce locks and avoid timeouts, automatically re-dispatching until the query’s records are gone. | 81 | 81 | 11 | 19K | 0 | 5.8 | 32.6 | MIT | 1 year ago | |
| laravel-persona/core | 0.87 | Core package for Laravel Persona, providing foundational APIs to define, resolve, and manage personas in Laravel applications. It offers a lightweight, extensible base for building persona-driven profiles, contexts, and behavior across your app. | 0 | 0 | 0 | 4 | 0 | 17.8 | 11.2 | — | 1 month ago | |
| spatie/laravel-model-cleanup | 0.86 | Deprecated: use Laravel’s built-in Prunable. Spatie’s laravel-model-cleanup deletes unneeded Eloquent records via a cleanUp() configuration per model, and an artisan command to prune records older than a given age or matching custom rules. | 394 | 399 | 43 | 293 | 0 | 5.5 | 2.4 | MIT | 5 years ago | |
| vizrex/laravel-cleaner | 0.86 | — | 4 | 4 | 3 | 0 | 0 | 0.1 | — | NOASSERTION | — | |
| spatie/temporary-directory | 0.86 | Spatie's PHP package quickly creates, uses, and deletes temporary directories in the system's temp folder. Chainable methods handle custom naming, path helpers, and automatic cleanup of every file inside when the directory is deleted. | 972 | 977 | 49 | 8M | 0 | 26.3 | 60.4 | MIT | 4 months ago | |
| jiordiviera/laravel-log-cleaner | 0.86 | Laravel Log Cleaner helps you purge old Laravel log files automatically. Configure retention rules and schedule cleanup via Artisan/cron to keep storage tidy, prevent large logs, and reduce disk usage with minimal setup. | 8 | 7 | 2 | 320 | 0 | 20.1 | 25.2 | NOASSERTION | 2 weeks ago | |
| adgoal/cleaner-bundle | 0.86 | Symfony bundle integrating lamoda/cleaner. Configure DB and custom storage cleaners via YAML, including transactional mode, parameters, and multi-query setups. Provides a console command to run all cleaners or a selected one (cleaner:clear). | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 6 years ago | |
| omaralalwi/laravel-trash-cleaner | 0.86 | — | 21 | 20 | 2 | 1K | 1 | 1.8 | 24.9 | MIT | 1 year ago | |
| visavi/cleanup | 0.85 | A Laravel package for automating cleanup of old or unused files and directories. Configure paths and retention rules, then run the provided Artisan command manually or on a schedule to reclaim disk space and keep application storage tidy. | 23 | 24 | 2 | 1K | 0 | 12.3 | 25.5 | — | 4 months ago | |
| spatie/laravel-disk-monitor | 0.85 | Monitor Laravel filesystem disks by recording daily metrics (currently: file count per disk). Includes migrations, config for disk names, and a scheduled command to capture usage over time for reporting and alerts. | 26 | 27 | 5 | 13 | 0 | 0.9 | 2.4 | MIT | 6 years ago | |
| sajadsdi/laravel-file-management-image | 0.84 | — | 0 | 0 | 0 | 0 | 0 | 1.2 | — | — | 2 years ago | |
| t-labs-co/laravel-cleanup-data | 0.84 | A Laravel package for cleaning up data in your application, helping you remove stale or unwanted records through configurable cleanup logic. Useful for pruning old data and keeping database tables tidy. | 0 | — | 0 | — | 0 | 19.5 | — | MIT | 2 weeks ago | |
| lamoda/cleaner | 0.84 | Lamoda Cleaner is a PHP library for purging old data from various storages, primarily databases. Includes configurable DB cleaners such as a Doctrine DBAL cleaner that runs parameterized cleanup queries to delete outdated records. | 3 | 3 | 0 | 0 | 0 | 0.2 | — | MIT | 5 years ago | |
| sajadsdi/laravel-file-management | 0.84 | — | 3 | 3 | 0 | 1 | 0 | 0.6 | 1.3 | — | 2 years ago | |
| spatie/laravel-export | 0.84 | Laravel Export scans your Laravel app, renders every crawled URL to HTML, and bundles the public directory into a static site saved to disk. Build blogs or sites with familiar Laravel tools, then upload the export to Netlify, GitHub Pages, or any static host—no server required. | 698 | 700 | 63 | 11K | 0 | 32.6 | 19.8 | MIT | 1 week ago | |
| spatie/laravel-backup | 0.83 | Create a zip backup of your Laravel app's files and database, store it on any configured filesystem or multiple at once, monitor backup health, get notified when problems arise, and automatically clean up old backups. Run php artisan backup:run. | 6,027 | 6,119 | 785 | 2M | 0 | 69.1 | 40.2 | MIT | 1 month ago | |
| signifly/laravel-janitor | 0.83 | Laravel Janitor is a lightweight Laravel package for automatically cleaning up stale Eloquent records. Define which models and records should be pruned, then let scheduled cleanup keep your database tidy without custom commands. | 60 | — | 9 | — | 0 | 0.5 | — | MIT | 3 years ago | |
| kherge/file-manager | 0.83 | Strict file and stream manager for PHP: safe read/write operations with unified APIs for files, in-memory strings, and existing streams. Supports iteration over contents and consistent handling via File, Memory, and Stream managers. | 8 | 8 | 3 | 4K | 1 | 2.8 | 36.6 | NOASSERTION | 9 years ago | |
| spatie/laravel-deleted-models | 0.83 | Automatically copy deleted Eloquent model attributes into a deleted_models table to create a recycle bin for records. Restore deleted models by ID when needed. An alternative to soft deletes for preserving deletion history without keeping rows in place. | 411 | 413 | 26 | 21K | 0 | 13.9 | 25.1 | MIT | 8 months ago |
How can I help you explore Laravel packages today?