6fdigital/silverstripe-phone-field

A phone number field for the SilverStripe CMS with validation using libphonenumber

Maintainers

👁 6fdigital

Package info

github.com/6fdigital/silverstripe-phone-field

Type:silverstripe-vendormodule

pkg:composer/6fdigital/silverstripe-phone-field

Statistics

Installs: 105

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.2.0 2025-08-28 14:36 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Apache-2.0 42b03d0ca28ce0211c11a50384d6a4af8b3c48c8

  • Marco Kernler <marco.kernler.woop@6f.digital>

formsilverstripephonenumberuserforms

This package is auto-updated.

Last update: 2026-06-28 16:39:20 UTC


README

A phone number field for the SilverStripe CMS with validation using libphonenumber.

Requirements

Installation

composer require "6fdigital/silverstripe-phone-field"

Usage

The PhoneField can be used in your custom forms and with the SilverStripe Userforms module. For usage in your custom Forms simply add the form to your field list:

use SixF\PhoneField\PhoneField;

public function MyForm(): Form {
 return Form::create(
 $this,
 "MyForm",
 FieldList::create(
 ...
 PhoneField::create('PhoneNumber', 'Your Phone Number')
 ...
 ),
 FieldList::create(
 FormAction::create('doSubmit', 'Submit')
 ),
 RequiredFields::create('Phone')
 );
 }
}