PHPackages                             qin-jd/laravel-dingxiang - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. qin-jd/laravel-dingxiang

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

qin-jd/laravel-dingxiang
========================

laravel-dingxiang is a laravel package for dingxiang captcha

v0.0.1-rc1(6y ago)12.2k—7.1%Apache-2.0PHP

Since Sep 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/qin-jd/laravel-dingxiang)[ Packagist](https://packagist.org/packages/qin-jd/laravel-dingxiang)[ RSS](/packages/qin-jd-laravel-dingxiang/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

### laravel-dingxiang

[](#laravel-dingxiang)

因为项目需求需要对接顶象无感验证，顶象并没有给出官方的composer包。
为了我们几个系统能方便地接入，通过修改顶象给的sdk包做出了laravel的扩展包。
也为了后续别的开发者能方便地将顶象验证集成到laravel项目中。

### 安装

[](#安装)

`composer require qin-jd/laravel-dingxiang`

### 使用指南

[](#使用指南)

laravel5.5以上扩展包自动发现，无需配置即可使用。

laravel5.5版本以下：

在config/app.php里配置服务提供者

```
'providers' => [
    // ...
    Qinjd\Dingxiang\DingxiangServiceProvider::class,
]

```

配置aliases

```
'aliases' => [
    // ...
    'DXCaptcha' => 'Qinjd\Dingxiang\Facades\DXCaptcha',
]

```

### 配置

[](#配置)

在.env里配置如下信息

```
DX_APP_ID=appid
DX_APP_SECRET=appsecret

```

### 示例demo

[](#示例demo)

前端引入顶象的js文件

``

前端将生成的token发送给服务端，服务端只需一行代码即可：

```
$checked = DXCaptcha::check('token')

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2475d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86eedc90c02381643a90f2a189a56d54edab2e6e5c24db38e2b10a3f733cd978?d=identicon)[qin-jd](/maintainers/qin-jd)

### Embed Badge

![Health badge](/badges/qin-jd-laravel-dingxiang/health.svg)

```
[![Health](https://phpackages.com/badges/qin-jd-laravel-dingxiang/health.svg)](https://phpackages.com/packages/qin-jd-laravel-dingxiang)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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