PHPackages                             phphleb/ucaptcha - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phphleb/ucaptcha

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phphleb/ucaptcha
================

Universal captcha

1.0.1(4mo ago)41671MITPHPPHP &gt;7.0.0

Since Jan 29Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/phphleb/ucaptcha)[ Packagist](https://packagist.org/packages/phphleb/ucaptcha)[ RSS](/packages/phphleb-ucaptcha/feed)WikiDiscussions main Synced 5d ago

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

UCaptcha
========

[](#ucaptcha)

[![PHP](https://camo.githubusercontent.com/a54c0f8c9de8152f55c6650415d586dbb603853d4c63c749948ec518e9b9785e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345372e302d626c7565)](https://camo.githubusercontent.com/a54c0f8c9de8152f55c6650415d586dbb603853d4c63c749948ec518e9b9785e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345372e302d626c7565) [![License: MIT](https://camo.githubusercontent.com/fdf4c838e998efe42a2cfb3c27b8addedc9f7ddd1ecfecc4b19254f784232b7a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542532302846726565292d627269676874677265656e2e737667)](https://github.com/phphleb/hleb/blob/master/LICENSE)

[![CAPTCHA EXAMPLE](https://raw.githubusercontent.com/phphleb/ucaptcha/d474f82c23f5f97d615b2c3b405927f293b02a2d/resources/dark.png)](https://raw.githubusercontent.com/phphleb/ucaptcha/d474f82c23f5f97d615b2c3b405927f293b02a2d/resources/dark.png)

[![CAPTCHA EXAMPLE](https://raw.githubusercontent.com/phphleb/ucaptcha/d474f82c23f5f97d615b2c3b405927f293b02a2d/resources/base.png)](https://raw.githubusercontent.com/phphleb/ucaptcha/d474f82c23f5f97d615b2c3b405927f293b02a2d/resources/base.png)

[![CAPTCHA EXAMPLE](https://raw.githubusercontent.com/phphleb/ucaptcha/32af2717ccc99c7953751dc12f561210c51c1f82/resources/3d.png)](https://raw.githubusercontent.com/phphleb/ucaptcha/32af2717ccc99c7953751dc12f561210c51c1f82/resources/3d.png)

Universal Captcha
-----------------

[](#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.
}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance77

Regular maintenance activity

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Every ~714 days

Total

2

Last Release

124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/add493abc37e54c44eabe920dd9facf7aae69955c84bb8245b561f3fc51708da?d=identicon)[phphleb](/maintainers/phphleb)

---

Top Contributors

[![phphleb](https://avatars.githubusercontent.com/u/48386098?v=4)](https://github.com/phphleb "phphleb (34 commits)")

### Embed Badge

![Health badge](/badges/phphleb-ucaptcha/health.svg)

```
[![Health](https://phpackages.com/badges/phphleb-ucaptcha/health.svg)](https://phpackages.com/packages/phphleb-ucaptcha)
```

PHPackages © 2026

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