PHPackages                             steadlane/vision6 - 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. steadlane/vision6

ActiveSilverstripe-module

steadlane/vision6
=================

A form generator for Vision6 mailing lists

1.1.0(9y ago)012BSD (3-Clause)PHPPHP &gt;=5.3,&lt;7

Since May 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/steadlane/silverstripe-vision6)[ Packagist](https://packagist.org/packages/steadlane/vision6)[ RSS](/packages/steadlane-vision6/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

silverstripe-vision6
====================

[](#silverstripe-vision6)

[![Code Climate](https://camo.githubusercontent.com/52ea295b2ad21c135c31eeff57c339a57fa03a8429f9c441a5efd192cc2e82fe/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f73746561646c616e652f73696c7665727374726970652d766973696f6e362f6261646765732f6770612e737667)](https://codeclimate.com/github/steadlane/silverstripe-vision6)[![Latest Stable Version](https://camo.githubusercontent.com/fafaa92fb189f041dbb86c9f383803d76579658a083bad4c5d26fad2423f148f/68747470733a2f2f706f7365722e707567782e6f72672f73746561646c616e652f766973696f6e362f76657273696f6e)](https://packagist.org/packages/steadlane/vision6)[![License](https://camo.githubusercontent.com/dd79e5190084901ad2e785e7f8e35ebc0c2f2562635420ebd39d546f05ef0155/68747470733a2f2f706f7365722e707567782e6f72672f73746561646c616e652f766973696f6e362f6c6963656e7365)](https://packagist.org/packages/steadlane/vision6)

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

[](#installation)

This module only supports installation via composer:

```
composer require steadlane/vision6

```

Run `/dev/build` afterwards for SilverStripe to become aware of this extension

Configuration
-------------

[](#configuration)

Your Vision6 API key must be defined as the constant `VISION6_API_KEY`. In your `mysite/_config.php` you'll be required to add:

```
define('VISION6_API_KEY', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
```

Once configured you can then `?flush=1` to syncronise your Vision6 Mailing Lists with SilverStripe. These lists will be refreshed upon every flush

Short Code
----------

[](#short-code)

To include a subscriber form on any given page from within the CMS you will need to use the shortcode below:

**Code:**

```
[vision6_list, list_id=]

```

**Note**: Change `` to the ID of the form you want to display. See [Finding my List ID](#finding-my-list-id)

Template Syntax
---------------

[](#template-syntax)

Within an .SS template you can invoke a list in a similar way you would for the shortcode

**Code:**

```
$Vision6List();

```

**Note**: Change `` to the ID of the form you want to display. See [Finding my List ID](#finding-my-list-id)

Caveat
------

[](#caveat)

Due to the way forms are being generated dynamically, and in order to maintain the functionality provided by `Form` you may only have one list per page. Having more will lead to validation issues and data handling issues. If you feel you can eliminate this caveat then we implore you to submit a PR

Finding my List ID
------------------

[](#finding-my-list-id)

1. Login to Vision6 dashboard and select "Lists and Forms" from the side menu
2. Find the list you want the ID for and click the "Edit" button
3. You can find the list ID in the address bar, eg for `http://www.vision6.com.au/list/form/designer?id=377499` your list ID is 377499

Independent Form Field
----------------------

[](#independent-form-field)

This module comes with a `SubscribeField` which is based off `CheckboxField` the only difference is that the validator on this will actually check to see if an email is subscribed to a specific list.

A complete example for you to implement this yourself:

```
class TestV6Form extends Form
{
    public function __construct(Controller $controller, $name)
    {
        /** @var Vision6SubscribeField $subscriberField */
        $subscriberField = Vision6SubscribeField::create('Subscribe', 'Subscribe');
        $subscriberField->setEmailFieldName('Email');
        $subscriberField->setListId(375305);
        $subscriberField->setValue(1);

        $fields = FieldList::create(
            array(
                EmailField::create('Email'),
                $subscriberField
            )
        );

        $actions = FieldList::create(
            FormAction::create('process', 'Subscribe')
        );

        $validator = RequiredFields::create(
            array(
                'Email'
            )
        );

        parent::__construct($controller, $name, $fields, $actions, $validator);
    }
}
```

Then in your form handling function, which in the above example would be `process` simply

```
Vision6::subscribeEmail(375305, 'me@example.com');
```

Contributing
------------

[](#contributing)

If you feel you can improve this module in any way, shape or form please do not hesitate to submit a PR for review.

Bugs / Issues
-------------

[](#bugs--issues)

To report a bug or an issue please use our [issue tracker](https://github.com/steadlane/silverstripe-vision6/issues).

License
-------

[](#license)

This module is distributed under the [BSD-3 Clause](https://github.com/steadlane/silverstripe-vision6/blob/master/LICENSE) license.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

2

Last Release

3286d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4e4d3c5202c94d08418997abab91844fd9c3d21b29836c1907499646bfe76f4?d=identicon)[steadlane](/maintainers/steadlane)

---

Top Contributors

[![zanderwar](https://avatars.githubusercontent.com/u/13566916?v=4)](https://github.com/zanderwar "zanderwar (9 commits)")

### Embed Badge

![Health badge](/badges/steadlane-vision6/health.svg)

```
[![Health](https://phpackages.com/badges/steadlane-vision6/health.svg)](https://phpackages.com/packages/steadlane-vision6)
```

###  Alternatives

[silverstripe-terraformers/gridfield-rich-filter-header

Rich filter header component for GridField

1325.7k1](/packages/silverstripe-terraformers-gridfield-rich-filter-header)[silverstripe/superglue

102.2k](/packages/silverstripe-superglue)

PHPackages © 2026

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