mhunesi/yii2-cardjs 问题修复 & 功能扩展

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

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

mhunesi/yii2-cardjs

最新稳定版本:v1.0.0

Composer 安装命令:

composer require mhunesi/yii2-cardjs

包简介

Yii2 Card JS Asset Bundle

README 文档

README

Yii2 Card JS Widget

Card JS https://github.com/jessepollak/card

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist mhunesi/yii2-cardjs "*"

or add

"mhunesi/yii2-cardjs": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<div class="row">
    <div class="col-md-6">
        <form class="card-form">
            <input type="text" name="number">
            <input name="name"/>
            <input name="expiry"/>
            <input name="cvc"/>
        </form>
    </div>

    <div class="col-md-6">
        <?= \mhunesi\cardjs\CardJs::widget([
            'clientOptions' => [
                'form' => '.card-form',
                'placeholders' => [
                    'number' => '**** **** **** ****',
                    'name' => 'Name Lastname',
                    'expiry' => '**/**',
                    'cvc' => '***'
                ],
                'formSelectors' => [
                    'numberInput' => 'input[name="number"]',
                    'expiryInput' => 'input[name="expiry"]', 
                    'cvcInput' => 'input[name="cvc"]', 
                    'nameInput' => 'input[name="name"]'
                ],
                'formatting' => true,
                'debug' => YII_ENV_DEV
            ]
        ]) ?>
    </div>
</div>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2021-11-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固