2017 © Pedro Peláez
 

library phone-field

ATK14 form field for entering phone numbers

image

atk14/phone-field

ATK14 form field for entering phone numbers

  • Monday, July 16, 2018
  • by yarri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,940 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

PhoneField

ATK14 form field for entering phone numbers., (*1)

Installation

Just use the Composer:, (*2)

cd path/to/your/atk14/project/
composer require atk14/phone-field dev-master

Optionaly you can link the field source file to the regular location, (*3)

cd path/to/your/atk14/project/
ln -s ../../vendor/atk14/phone-field/src/phone_field.php app/fields/phone_field.php

Usage

<?php
// file: app/forms/users/create_new_form.php
class CreateNewForm extends ApplicationForm {

  function set_up(){
    // ...

    $this->add_field("phone", new PhoneField([
      "label" => "Phone",
      "default_country_code" => "CZ", // "CZ", "SK", "AT", "PL"... or "+420"
      // "sample_phone_number" => "+420 777 123 456",
      // "help_text" => "Enter phone number in format %sample_phone_number%"
    ]));

    // ...
  }
}

License

PhoneField is free software distributed under the terms of the MIT license, (*4)

The Versions

16/07 2018

dev-master

9999999-dev https://github.com/atk14/PhoneField

ATK14 form field for entering phone numbers

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

field forms phone atk14

16/07 2018

v1.0

1.0.0.0 https://github.com/atk14/PhoneField

ATK14 form field for entering phone numbers

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

field forms phone atk14