PHPackages                             hahadu/laravel-ajax-captcha - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. hahadu/laravel-ajax-captcha

ActiveLibrary

hahadu/laravel-ajax-captcha
===========================

laravel ajax captcha

00PHP

Since Apr 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hahadu/laravel-ajax-captcha)[ Packagist](https://packagist.org/packages/hahadu/laravel-ajax-captcha)[ RSS](/packages/hahadu-laravel-ajax-captcha/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AJ-Captcha SDK for Laravel
==========================

[](#aj-captcha-sdk-for-laravel)

Laravel的AJ-Captcha SDK

安装
--

[](#安装)

```
composer require

```

用法示例
----

[](#用法示例)

获取验证码

```
use Hahadu\LaravelAjaxCaptcha\AjcaptchaService;
return app(AjcaptchaService::class)->setVerifyType('click')->getVerify();
```

一次验证

```
use axguowen\Ajcaptcha;

$checkResult = app(AjcaptchaService::class)->setVerifyType('click')->check($token, $pointJson);
// 失败
if(is_null($checkResult[0])){
    throw $checkResult[1];
}
// 成功
var_dump($checkResult[0]);
```

二次验证

```
use axguowen\Ajcaptcha;

$checkResult = app(AjcaptchaService::class)->setVerifyType('click')->validate($encryptCode, $token, $pointJson);
// 失败
if(is_null($validateResult[0])){
    throw $validateResult[1];
}
// 成功
var_dump($validateResult[0]);
```

```
$point = [
    ['x' => 23, 'y' => 55],
    ['x' => 64, 'y' => 53],
    ['x' => 43, 'y' => 92]
];
$point = json_encode($point);

$pointJson = AesUtils::encrypt($point,$checkResult['secretKey']);

dump(app(AjcaptchaService::class)->setVerifyType('click')->getService()->check($checkResult['token'], $pointJson));
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8803f4b62a77e88a2b14f57d7d68a5bacaa69fd8c58b17101e89044fab8abb27?d=identicon)[hahadu](/maintainers/hahadu)

---

Top Contributors

[![hahadu](https://avatars.githubusercontent.com/u/38153732?v=4)](https://github.com/hahadu "hahadu (1 commits)")

### Embed Badge

![Health badge](/badges/hahadu-laravel-ajax-captcha/health.svg)

```
[![Health](https://phpackages.com/badges/hahadu-laravel-ajax-captcha/health.svg)](https://phpackages.com/packages/hahadu-laravel-ajax-captcha)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
