Download the PHP package plasticstudio/form-submission-cleanup without Composer

On this page you can find all versions of the php package plasticstudio/form-submission-cleanup. 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 form-submission-cleanup

Form Submission Cleanup

A Silverstripe module that provides a single queued job to delete old form submission DataObjects on a daily schedule. Target classes, retention periods, and exclude rules are all defined in YAML config.

Requirements

Installation

Setup a cron job:

Configuration

Copy the relevant blocks into your project's _config/config.yml.

Globals

Targets

Add one entry per DataObject class to clean up. UserForms is shown as an example; omit it if the module is not installed.

Per-target options

Key Type Description
retention_days int Overrides the global default for this class only
date_field string DataObject field to measure age against (default Created)
exclude map ORM filter passed to DataList::exclude() — matching records are kept

Daily scheduling (default jobs)

Register the job as a QueuedJobs default job so it is automatically re-queued after each run.

Run a dev/build, then queue the first instance manually via the CMS (Admin > Jobs). Subsequent runs are scheduled automatically.

How it works

  1. setup() iterates every configured target class, applies the retention cutoff and any exclude filter, and collects matching record IDs.
  2. process() deletes one record per step. Cascade-delete rules on each DataObject handle any related records (e.g. SubmittedFormField children on SubmittedForm).
  3. After the job completes, the default jobs feature re-queues it for the next scheduled run.

All versions of form-submission-cleanup with dependencies

PHP Build Version
Package Version
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 plasticstudio/form-submission-cleanup contains the following files

Loading the files please wait ...