Download the PHP package anubit/filefix without Composer

On this page you can find all versions of the php package anubit/filefix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filefix

filefix

Find it. Fix it. Never rm -rf a client's fileadmin by accident.

A TYPO3 v14 backend extension that keeps fileadmin honest: it catches files whose content doesn't match their extension, finds files nobody references anymore, and gives you a safe, reversible way to get rid of them — instead of a one-way delete button and a prayer.


Table of contents


Why this exists

Real-world fileadmin folders rot in two specific ways:

  1. Content/extension mismatches. Someone renames a .png to .jpg, or an old CMS re-exported a Photoshop file as .jpg without converting it. The browser silently mis-renders it, or breaks entirely, and nobody notices until a client complains.
  2. Unused files pile up. Thousands of uploads that no page, no content element, and no FlexForm references anymore. They just sit there, unindexed clutter, until someone panics and deletes the whole folder — sometimes deleting things that were still in use.

filefix addresses both, with two purpose-built tools living where editors already work.


The two tools

1. MIME Fix — inside the native Filelist

No separate module to learn. A "Scan MIME" button gets injected directly into TYPO3's own File > Filelist toolbar for the folder you're viewing.

Click it and you get a report of every file in that folder where:

Supported types: jpg, jpeg, png, gif, webp, bmp, tiff/tif, plus the text-based css, js, yaml/yml, and dotx.

How fixing works, depending on the case:

Situation What happens
Image content genuinely doesn't match extension (e.g. a PNG saved as .jpg) Converted in place via ImageMagick / GraphicsMagick, written to a temp file first so a failed conversion never corrupts the original
Photoshop file (.psd content, wrong extension) Converted via PHP's Imagick extension if available (GraphicsMagick has no PSD decoder); falls back to ImageMagick convert directly, reading only the merged/composite layer so you don't end up with file-0, file-1, file-2...
css / js / yaml / yml / dotx finfo can never correctly detect these as anything but a generic MIME type — so instead of a bogus "conversion," the extension just corrects the sys_file.mime_type DB record directly

Select the issues you want to fix, hit Fix selected, done. The FAL index gets re-read afterward so TYPO3 immediately reflects the corrected type.

2. File Cleanup — fast, direct deletion

File > File Cleanup. Straightforward, for when you already trust the result and just want it gone.

This tool deletes physical files and their sys_file/sys_file_reference rows immediately. There's no undo — double-check your filters before running a bulk delete.


Requirements

Installation

Already wired up as a local Composer path package:

CLI reference

Both commands are meant for scheduled/unattended runs (cron, TYPO3 Scheduler) once you trust the tool for a given site.

filefix:cleanup:scan

Populates the quarantine queue — same engine as Quick Scan in the backend module.

Option Description Default
--storage Storage UID to scan 1
--folder Restrict to a FAL folder identifier (e.g. /images/) (all)
--older-than Duration string: 90d, 2w, 24h 90d
--limit Max candidates per scan type 5000
--include-unused Scan for unreferenced FAL files off
--include-missing Scan for FAL records whose file is gone off
--include-physical-orphans Scan for un-indexed physical files off

filefix:cleanup:flush

Processes what's already in the queue.

Option Description Default
--storage Storage UID 1
--status Which status to process: candidate or quarantined candidate
--older-than Only records queued longer than this (e.g. 14d) (none)
--limit Max records per run 1000
--move-to-quarantine candidate → quarantined
--delete quarantined → flushed (permanent)
--scan-id Restrict to one scan's results (none)
--force Allow candidate → flushed directly, skipping quarantine off
--dry-run Simulate, no changes made off

--delete on candidate status is blocked unless you pass --force — the lifecycle is meant to go through quarantine first.

Database

Table Purpose
tx_filefix_quarantine The live queue: one row per candidate/quarantined/resolved file, with status, reason, scan ID, size, SHA1, and quarantine path
tx_filefix_log Append-only action log (delete / quarantine / restore / skip / recheck), independent of queue state, for audit purposes

Safety design

Backend modules & permissions

Registered under the File menu, access: user (needs to be granted per backend user group, same as any other module):

Module Route Purpose
File Cleanup filefix_cleanup Direct find & delete

The quarantine backend module is currently disabled (see Configuration/Backend/Modules.php); its underlying scan/flush engine still runs via the CLI commands below.

MIME Fix has no separate module — it's a toolbar button injected into TYPO3 core's own media_management (Filelist) route via FilelistMimeFixMiddleware, so it inherits whatever access your users already have to Filelist.

Architecture

Namespace: Anubit\Filefix\. Extension key: filefix.


All versions of filefix with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^12.4 || ^13.4 || ^14.0
typo3/cms-backend Version ^12.4 || ^13.4 || ^14.0
typo3/cms-extbase Version ^12.4 || ^13.4 || ^14.0
typo3/cms-fluid Version ^12.4 || ^13.4 || ^14.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package anubit/filefix contains the following files

Loading the files please wait ...