PHPackages                             tekintian/tekintcaptcha - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. tekintian/tekintcaptcha

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

tekintian/tekintcaptcha
=======================

腾讯验证码, 腾讯防水墙, 验证码, 滑动验证码, 智能滑动验证码PHP扩展, TekinTCaptcha - A Client library for Tencent Captcha, a service that protect websites from spam and abuse.

v1.0.1(7y ago)187785[1 issues](https://github.com/tekintian/TekinTCaptcha/issues)BSD-3-ClausePHPPHP &gt;=5.6

Since Jul 6Pushed 7y ago2 watchersCompare

[ Source](https://github.com/tekintian/TekinTCaptcha)[ Packagist](https://packagist.org/packages/tekintian/tekintcaptcha)[ Docs](http://tekin.yunnan.ws/)[ RSS](/packages/tekintian-tekintcaptcha/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

TekinTCaptcha PHP client library
================================

[](#tekintcaptcha-php-client-library)

基于Google PHP项目设计思想实现的腾讯滑动智能验证码实现PHP中间件。
---------------------------------------

[](#基于google-php项目设计思想实现的腾讯滑动智能验证码实现php中间件)

- Project page:
- Repository:
- Version: 1.0.0

Description
-----------

[](#description)

腾讯验证码, 腾讯防水墙, 验证码, 滑动验证码, 智能滑动验证码PHP扩展, TekinTCaptcha - A Client library for Tencent Captcha, a service that protect websites from spam and abuse. TekinTCaptcha is a free CAPTCHA service that protect websites from spam and abuse.

This is Tencent Captcha code that provides plugins for third-party integration with TekinTCaptcha.

Installation
------------

[](#installation)

### Composer (Recommended)

[](#composer-recommended)

[Composer](https://getcomposer.org/) is a widely used dependency manager for PHP packages. This TekinTCaptcha client is available on Packagist as [`tekintian/tekintcaptcha`](https://packagist.org/packages/tekintian/tekintcaptcha) and can be installed either by running the `composer require` command or adding the library to your `composer.json`. To enable Composer for you project, refer to the project's [Getting Started](https://getcomposer.org/doc/00-intro.md)documentation.

To add this dependency using the command, run the following from within your project directory:

```
composer require tekintian/tekintcaptcha "~1.0"

```

Alternatively, add the dependency directly to your `composer.json` file:

```
"require": {
    "tekintian/tekintcaptcha": "~1.0"
}
```

### Direct download (no Composer)

[](#direct-download-no-composer)

If you wish to install the library manually (i.e. without Composer), then you can use the links on the main project page to either clone the repo or download the [ZIP file](https://github.com/tekintian/TekinTCaptcha/archive/master.zip). For convenience, an autoloader script is provided in `src/autoload.php` which you can require into your script instead of Composer's `vendor/autoload.php`. For example:

```
require('/path/to/TekinTCaptcha/src/autoload.php');
$recaptcha = new \TekinTCaptcha\TekinTCaptcha($aid,$AppSecretKey);
```

The classes in the project are structured according to the [PSR-4](http://www.php-fig.org/psr/psr-4/) standard, so you may of course also use your own autoloader or require the needed files directly in your code.

Usage
-----

[](#usage)

First, register keys for your site at

When your app receives a form submission containing the `Ticket, Randstr`field, you can verify it using:

```
