Download the PHP package hzdad/codecheck without Composer

On this page you can find all versions of the php package hzdad/codecheck. 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 codecheck

codecheck for webman

For webman, create a SMS verification code and verify 适用于webman, 创建一个短信验证码并验证, 短信验证码生成、缓存、验证类库, 基于 tpsms 修改

主要特性

安装

composer require hzdad/codecheck

配置

config/plugin/hzdad/codecheck/app.php

return [
    'enable' => true,
    'expire' => 300,//过期时间
    'length' => 6,//验证码长度
    'chcktimes' => 3,//最多可以尝试次数
    'delafterok' => true,//验证后从缓存删除
];

使用示例

    public function createCode()
    {
        $checksms = new \Hzdad\Codecheck\Codecheck();
        $code = $checksms->mobile('18888888888')->scene('login')->create();
        echo $code;
    }

    public function checkCode()
    {
        $checksms = new \Hzdad\Codecheck\Codecheck();
        $res = $checksms->mobile('18888888888')->scene('login')->checktimes(3)->delafterok(false)->code('594093')->check();
        if(!$res){
            $msg = $checksms->getErrorMsg();
        }else{
            $msg = 'ojbk';
        }
        echo $msg;
    }

版权信息

codecheck遵循Apache2开源协议发布,并提供免费使用。


All versions of codecheck with dependencies

PHP Build Version
Package Version
No informations.
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 hzdad/codecheck contains the following files

Loading the files please wait ....