PHPackages                             hailwood/silverstripe-simple-linkfield - 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. hailwood/silverstripe-simple-linkfield

AbandonedArchivedSilverstripe-module[Utility &amp; Helpers](/categories/utility)

hailwood/silverstripe-simple-linkfield
======================================

Adds a new simple linkfield fieldtype.

v1.0.0(9y ago)0241[1 issues](https://github.com/hailwood/silverstripe-simple-linkfield/issues)GNUPHP

Since Jan 25Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Silverstripe Simple Link Field
==============================

[](#silverstripe-simple-link-field)

#### A Silverstripe Link Field:

[](#a-silverstripe-link-field)

[![Screenshot](/snapshot.png?raw=true)](/snapshot.png?raw=true)

- **user defined protocols**: Any are supported and depending on the option selected (http, https, or mailto) we'll validate it.

#### Installation

[](#installation)

```
composer require hailwood/silverstripe-simple-linkfield
```

#### Options

[](#options)

```
TextLinkField:
  default_protocols:
    http: 'http://'
    https: 'https://'
    mailto: 'Email'
```

#### Usage

[](#usage)

##### Dataobject/Page

[](#dataobjectpage)

```
class DataObjectWithLink extends DataObject {

    protected static $db = [
        'Link' => 'Varchar(255)',
        'LinkWithoutEmail' => 'Varchar(255)',
    ];

    public function getCMSFields(){
        $fields = parent::getCMSFields();

        $fields->addFieldsToTab('Root.Main', [
            TextLinkField::create('Link', 'Link'),
            TextLinkField::create('LinkWithoutEmail')->withoutEmailOption()
        ]);

        return $fields;
    }

}
```

##### Methods

[](#methods)

- **withoutEmailOption()**: Quickly disable the default email option
- **withEmailOption($title = 'Email')**: Quickly enable or set the title on the default email option
- **setProtocolList(\[\])**: Set the local instances protocol list
- **getProtocolList()**: Get the list of protocols in use by this local instance

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Unknown

Total

1

Last Release

3394d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/868f1ed9f864444f55c654b2291a697a825ce88a84cd3006e1fbba537c245e7f?d=identicon)[hailwood](/maintainers/hailwood)

---

Top Contributors

[![hailwood](https://avatars.githubusercontent.com/u/709773?v=4)](https://github.com/hailwood "hailwood (5 commits)")

---

Tags

silverstripefieldsFormslinks

### Embed Badge

![Health badge](/badges/hailwood-silverstripe-simple-linkfield/health.svg)

```
[![Health](https://phpackages.com/badges/hailwood-silverstripe-simple-linkfield/health.svg)](https://phpackages.com/packages/hailwood-silverstripe-simple-linkfield)
```

###  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)[gregwar/formidable

Formidable, the pragmatic forms library

12062.2k1](/packages/gregwar-formidable)[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)
