mekramy/verification-code 问题修复 & 功能扩展

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

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

mekramy/verification-code

Composer 安装命令:

composer require mekramy/verification-code

包简介

easy verification code using cache for laravel

README 文档

README

Note: Verification code instance must created using laravel service container or dependency injection

$vc = app(\MEkramy\VerificationCode\VerificationCode::class);

Note (Global/Private Mode) If validation key mode set to private, generated verification code is only available for current ip!

Note Last parameter on all methods determine that the verification code is global(set to true) or private(set to false)!

Create New Verification Code

To create a new code you need to call put method.

Example: Generate a verification code called verify_email with 12345 value and 5 min expiry:

$vc->put('verify_email', '12345', 5); // Global
$vc->put('verify_email_for_current_ip_only', '45678', 5, false); // private

Get Verification Code

Note: get method return null if code is expired or not exists.

$vc->get('verify_email'); # > 12345
$vc->get('not_exists'); # > null

Check If Verification Code Exists And Not Expired

$vc->exists('verify_email'); # > true
$vc->exists('not_exists'); # > false

Delete Verification Code

$vc->remove('verify_email');
$vc->get('verify_email'); # > null
$vc->exists('verify_email'); # > false

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固