PHPackages                             andrewhaine/silverstripe-form-capture - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. andrewhaine/silverstripe-form-capture

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

andrewhaine/silverstripe-form-capture
=====================================

Provides a method to capture simple silverstripe forms and a friendly admin interface for users

4.0.2(1y ago)15.3k2[1 issues](https://github.com/bigfork/silverstripe-form-capture/issues)BSD-3-ClausePHP

Since May 8Pushed 1y ago4 watchersCompare

[ Source](https://github.com/bigfork/silverstripe-form-capture)[ Packagist](https://packagist.org/packages/andrewhaine/silverstripe-form-capture)[ Docs](http://github.com/bigfork/silverstripe-form-capture)[ RSS](/packages/andrewhaine-silverstripe-form-capture/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (31)Used By (0)Security (1)

Silverstripe Form Capture
=========================

[](#silverstripe-form-capture)

Provides a method to capture simple Silverstripe forms and a friendly admin interface for users.

[![](docs/images/screenshot.png)](docs/images/screenshot.png)

Installation
------------

[](#installation)

```
composer require bigfork/silverstripe-form-capture

```

After installing you will need to run 'dev/build'.

Usage
-----

[](#usage)

To store submissions from a form simply call `$form->captureForm()` in your form handler method. See the example below for usage:

### Example

[](#example)

In the page controller:

```
public function MyForm()
{
	$fields = FieldList::create(
		TextField::create('Name'),
		EmailField::create('Email'),
		TextareaField::create('Enquiry')
	);

	$actions = FieldList::create(
		FormAction::create('doMyForm', 'Submit')
	);

	$form = Form::create($this, __FUNCTION__, $fields, $actions);

	return $form;
}

public function doMyForm($data, $form)
{
	$form->captureForm(
	    'Enquiry form submission', // Required - type of form submission
	    'Name', // Required (can be null) - form field containing the submitter's name
	    'Email', // Required (can be null) - form field containing the submitter's email address
	    ['Captcha'], // Optional - list of fields that shouldn't be stored
	    ['Enquiry'] // Optional - list of fields to show in "Details" column in CMS
	);

	// Other processing
}
```

When capturing a form some useful information is returned which can be used in the controller. For example a link is returned to the submission area in the CMS.

```
$capturedSubmission = $form->captureForm('Contact form', null, null);

echo($capturedSubmission['Link']);
// http://your-site.com/admin/
```

### Clearing old submissions

[](#clearing-old-submissions)

You can use the `ClearOldSubmissionsTask` to automatically delete form submissions older than a pre-defined age. To use this task, you must first configure the maximum age of form submissions:

```
Bigfork\SilverstripeFormCapture\Tasks\ClearOldSubmissionsTask:
  max_age_days: 90
```

Credit
------

[](#credit)

Thank you to [Andrew Haine](https://github.com/AndrewHaine) for building the original Silverstripe Form Capture module and allowing us to take over maintenance &amp; development.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance23

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 65% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~98 days

Recently: every ~142 days

Total

30

Last Release

448d ago

Major Versions

2.2.4 → 3.0.02022-10-24

2.2.5 → 3.1.12023-03-31

3.1.2 → 4.0.02023-07-28

3.1.3 → 4.0.12023-08-02

3.x-dev → 4.0.22025-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/86bf4d3dfe55597dfe041bd97488d830a42582e3224f12ad8a002066587d42e6?d=identicon)[andrewhaine](/maintainers/andrewhaine)

---

Top Contributors

[![AndrewHaine](https://avatars.githubusercontent.com/u/16389134?v=4)](https://github.com/AndrewHaine "AndrewHaine (26 commits)")[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (14 commits)")

---

Tags

silverstripeFormscapture

### Embed Badge

![Health badge](/badges/andrewhaine-silverstripe-form-capture/health.svg)

```
[![Health](https://phpackages.com/badges/andrewhaine-silverstripe-form-capture/health.svg)](https://phpackages.com/packages/andrewhaine-silverstripe-form-capture)
```

###  Alternatives

[unclecheese/display-logic

Allows assignment of conditions for display and hide of specific form fields based on client side behavior.

771.0M101](/packages/unclecheese-display-logic)[silverstripe/multiform

SilverStripe forms with multiple steps, flow control and state persistence

3156.0k3](/packages/silverstripe-multiform)[sheadawson/silverstripe-select2

A set of silverstripe form fields based on http://ivaynberg.github.com/select2/

1923.5k3](/packages/sheadawson-silverstripe-select2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
