Download the PHP package ddsm2016/sv without Composer

On this page you can find all versions of the php package ddsm2016/sv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sv

短信验证码类

通过Composer ddsm2016/sv 包可以获取该类库

依赖模块/类库

  1. 该类依赖ddsm2016/ddsm类库包,以提供短信发送服务
  2. 该类依赖特定结构的Eloquent模型,用于保存验证码相关状态信息

Eloquent模型表结构

序号 字段名 中文名 类型及长度 备注
1 id ID varchar(255) 主键
2 code 验证码 varchar(8) 验证码 最多长度8位
3 dayget 当天已获取次数 tinyint 无符号
4 verifyed 此验证码已验证次数 tinyint 无符号
5 created_at 验证码创建时间 datetime -
6 updated_at 验证码记录更新时间 datetime -

说明

Laravel Migration字段定义

初始化配置项

初始化类实例

方法清单

发送短信验证码

  • 如果验证码发送失败,可通过$sv->error()获取错误信息
  • sms方法用于设定短信发送类实例
  • content方法用于订制验证码短信模板,%s表示验证码占位符

短信验证码验证

如果验证码验证失败,可通过$sv->error()获取错误信息

获取最后产生错误信息


All versions of sv with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ddsm2016/sv contains the following files

Loading the files please wait ....