Skip to content
phphlebPublic

About

Universal captcha for smart people vs stupid robots

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

UCaptcha

PHP License: MIT

CAPTCHA EXAMPLE

CAPTCHA EXAMPLE

CAPTCHA EXAMPLE

Universal Captcha

Install using Composer:

$ composer require phphleb/ucaptcha

Шаг первый. Создание изображения (отображает PNG).

Step one. Image creation (displays PNG).

(new \Phphleb\Ucaptcha\Captcha())->createImage(\Phphleb\Ucaptcha\Captcha::TYPE_BASE);

Шаг второй. Проверка кода, введённого пользователем.

Step two. Checking the code entered by the user.

if ((new \Phphleb\Ucaptcha\Captcha())->check($code)) {
 // Characters entered correctly.
} else {
 // Invalid characters.
};

Проверка успешного прохождения капчи за текущую пользовательскую сессию.

Checking the successful completion of the captcha for the current user session.

if ((new \Phphleb\Ucaptcha\Captcha())->isPassed()) {
 // The captcha has already been completed earlier.
} 

About

Universal captcha for smart people vs stupid robots

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages