Download the PHP package mfd/delete-hidden without Composer

On this page you can find all versions of the php package mfd/delete-hidden. 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 delete-hidden

delete_hidden

TYPO3 extension (v13.4+) that soft-deletes hidden tt_content records older than a configurable number of days, including their recursive b13/container children.

How it works

  1. FinderService queries tt_content for records where hidden = 1, t3ver_wsid = 0, and tstamp is older than the given threshold. Pages with tx_delete_hidden_exclude = 1 are skipped.
  2. CleanupService enforces a safety cap (default 500) and delegates all deletions to TYPO3's DataHandler — no direct SQL. Any DataHandler error aborts the run immediately.
  3. CleanupCommand exposes the service as a Symfony Console command.

CLI usage

Options

Option Default Description
--days 90 Minimum age in days for a record to be a candidate
--dry-run List candidates without performing any deletions
--page 0 (all pages) Restrict to a page subtree by UID
--limit 500 Safety cap — aborts before any deletion when exceeded

Exit codes

Code Meaning
0 Success
1 Validation error, safety cap exceeded, or DataHandler error

Page exclusion

Set tx_delete_hidden_exclude = 1 on a page to exclude all its content from cleanup.

Installation

Then activate the extension in the TYPO3 backend under Admin Tools > Extensions or via CLI:

Scheduler task

The extension registers a TYPO3 Scheduler task named "Delete Hidden Content Elements".

  1. Navigate to System > Scheduler in the TYPO3 backend
  2. Add a new task and select Delete Hidden Content Elements from the class dropdown
  3. Configure the fields:
    • Days — minimum age in days for a record to be a candidate (default: 90)
    • Limit — maximum records per run (default: 500)
  4. Set frequency and save

The Scheduler task always executes (no dry-run mode). If the candidate count exceeds the limit, only the first N records are processed; the rest are handled in subsequent runs.

Running tests

Tests require the project's Composer dependencies to be installed (the vendor/ directory at the repository root).

Test files are located in Tests/Unit/ and Tests/Functional/.

Requirements


All versions of delete-hidden with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^13.4
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 mfd/delete-hidden contains the following files

Loading the files please wait ...