atk14/phone-field 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

atk14/phone-field

Composer 安装命令:

composer require atk14/phone-field

包简介

ATK14 form field for entering phone numbers

README 文档

README

Tests

ATK14 form field for entering phone numbers.

Installation

Just use the Composer:

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

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

统计信息

  • 总下载量: 42.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固