attogram/file-cache-cleaner

Delete expired Laravel-style `Illuminate\Cache` cache files and empty directories

Fund package maintenance!
attogram

Installs: 34

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/attogram/file-cache-cleaner

v2.5.0 2020-05-18 12:47 UTC

This package is auto-updated.

Last update: 2025-09-20 05:13:32 UTC


README

Delete expired cache files. For projects using Illuminate\Cache FileStore without a Laravel installation.

PHP 7+, One class, No dependencies, Composer Ready.

Maintainability Latest Stable Version Total Downloads License

Usage

Install:

composer require attogram/file-cache-cleaner

Report on cache status only:

vendor/bin/file-cache-cleaner -d path/to/cache/directory

Clean cache - delete expired cache files and empty subdirectories:

vendor/bin/file-cache-cleaner -d path/to/cache/directory --clean

Command Line Options:

  • -d path or --directory path - set path to Cache Directory
  • -c or --clean - clean cache: delete expired files, remove empty subdirectories

Project Links

Related Projects

Laravel artisan commands to delete expired cache files: