承接 mohammadv184/arcaptcha 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mohammadv184/arcaptcha

最新稳定版本:v1.0.2

Composer 安装命令:

composer require mohammadv184/arcaptcha

包简介

PHP library for ArCaptcha

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version Build Status License

PHP library for ArCaptcha. This package supports PHP 7.3+.

List of contents

Installation

Require this package with composer:

composer require mohammadv184/arcaptcha

Configuration

You can create a new instance by passing the SiteKey and SecretKey from your API. You can get that at https://arcaptcha.ir/dashboard

use Mohammadv184\ArCaptcha\ArCaptcha;

$ArCaptcha = new ArCaptcha($siteKey, $secretKey);

How to use

How to use ArCaptcha.

Widget usage

To show the ArCaptcha on a form, use the class to render the script tag and the widget.

<?php echo $ArCaptcha->getScript() ?>
<form method="POST">
    <?php echo $ArCaptcha->getWidget() ?>
    <input type="submit" value="Submit" />
</form>

Verifying a response

After the post, use the class to verify the response. You get true or false back:

if ($ArCaptcha->verify($_POST["arcaptcha-token"])) {
    echo "OK!";
} else {
    echo "FAILED!";
}

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-04