PHPackages                             omasn/decaptcha-bundle - 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. omasn/decaptcha-bundle

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

omasn/decaptcha-bundle
======================

Symfony Decaptcha bundle, распознавание капч для всех популярных сервисов rucaptcha.com, 2captcha.com, pixodrom.com, captcha24.com, socialink.ru, anti-captcha.com

1.1.2(8y ago)231MITPHPPHP ^5.5.9 || ^7.0

Since Sep 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Fuck4ik/DecaptchaBundle)[ Packagist](https://packagist.org/packages/omasn/decaptcha-bundle)[ Docs](http://bong.run/)[ RSS](/packages/omasn-decaptcha-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

DecaptchaBundle
===============

[](#decaptchabundle)

Symfony Decaptcha bundle.

The package is created for standardization of all services on guessing Captcha. Each service has its own characteristics and now you do not need to operate a few packages. It is enough only to familiarize with the available documentation in order to customize each. The package covers all the functionality of the services. If you do not have enough functionality, I'll be happy to hear all the suggestions. Bundle is implemented on the basis of

### Choose Language

[](#choose-language)

- [Russian](./README-ru.md)

### Menu

[](#menu)

- [Documentation](https://github.com/jumper423/decaptcha)
- [Services](#Services)
- [Installation](#Installation)
- [Usage](#Usage)

Services
========

[](#services)

Captcha Recognition for all popular services

- [RuCaptcha](https://rucaptcha.com?from=4461711)
- [2Captcha](https://2captcha.com/)
- [AntiCaptcha](https://anti-captcha.com/)
- [Captcha24](http://captcha24.com/)
- [Pixodrom](http://pixodrom.com/)
- [R.I.P. Captcha](http://ripcaptcha.com/)

Installation
============

[](#installation)

Get the bundle
--------------

[](#get-the-bundle)

Let Composer download and install the bundle by running

Or you can run

```
composer require omasn/decaptcha-bundle "*"
```

or add

```
"omasn/decaptcha-bundle": "1.1.*"
```

in file `composer.json`.

Enable the bundle
-----------------

[](#enable-the-bundle)

```
// in app/AppKernel.php
public function registerBundles() {
	$bundles = [
		...
		new Omasn\DecaptchaBundle\DecaptchaBundle(),
	];
	...
}
```

Configuration bundle
--------------------

[](#configuration-bundle)

Configure api\_key for those Captcha Recognition services that you want to use.

```
# app/config/config.yml
omasn_decaptcha:
    ru_captcha:
        api_key: '%api_key%'
    anticaptcha:
        api_key: '%api_key%'
    captcha_24:
        api_key: '%api_key%'
    pixodrom:
        api_key: '%api_key%'
    ripcaptcha:
        api_key: '%api_key%'
    socialink:
        api_key: '%api_key%'
    two_captcha:
        api_key: '%api_key%'
```

Usage
=====

[](#usage)

A small example of how on the basis of the RuCaptcha service to get your current balance in the system and by the available url to recognize the captcha. For more information on usage, see [Documentation](https://github.com/jumper423/decaptcha)

### Example in the controller action

[](#example-in-the-controller-action)

```
// src/AppBundle/Controller/DefaultController.php
...
public function indexAction()
{
    $oReCapcha = $this->get('decaptcha.ru_captcha');
    $iBalance = $oReCapcha->getBalance();
    ...
    if ($oReCapcha->recognize('http://site.ru/captcha.jpg')) {
        $code = $oReCapcha->getCode();
        if (!$myApp->validCode($code)) {
            $oReCapcha->notTrue(); // not valid code request in api
        }
    } else {
        $error = $oReCapcha->getError();
    }
}
...
```

### Using an additional configuration

[](#using-an-additional-configuration)

Add additional parameters to the RuCaptcha configuration "[Description of fields](https://github.com/jumper423/decaptcha/blob/master/docs/RuCaptcha-en.md#a-description-of-the-fields)"

```
// src/AppBundle/Controller/DefaultController.php

use Omasn\DecaptchaBundle\Services\RuCaptcha;

...
public function indexAction()
{
    $oReCapcha = $this->get('decaptcha.ru_captcha');
    $oReCapcha->setParams([
        RuCaptcha::ACTION_FIELD_FILE => '/file/to/path',
    ]);
}
...
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~1 days

Total

2

Last Release

3156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18ad25a37dcf8186c37b847a53a7a20fe7ae33ccd6d809d98650f6523b687731?d=identicon)[Fuck4ik](/maintainers/Fuck4ik)

---

Top Contributors

[![Fuck4ik](https://avatars.githubusercontent.com/u/11775707?v=4)](https://github.com/Fuck4ik "Fuck4ik (11 commits)")

---

Tags

symfonybundlecaptcharecognitiondecaptcha2captcha.com2captcharucaptchaanti-captcharucaptcha.compixodrom.comcaptcha24.comsocialink.rupixodromcaptcha24socialinkanti-captcha.com

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/omasn-decaptcha-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/omasn-decaptcha-bundle/health.svg)](https://phpackages.com/packages/omasn-decaptcha-bundle)
```

###  Alternatives

[jumper423/decaptcha

Распознавание капч для всех популярных сервисов rucaptcha.com, 2captcha.com, pixodrom.com, captcha24.com, socialink.ru, anti-captcha.com

65134.4k1](/packages/jumper423-decaptcha)[jumper423/yii2-captcha

Распознавание капч для всех популярных сервисов rucaptcha.com, 2captcha.com, pixodrom.com, captcha24.com, socialink.ru, anti-captcha.com

172.6k2](/packages/jumper423-yii2-captcha)[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[norberttech/aceeditor-bundle

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

28310.8k](/packages/norberttech-aceeditor-bundle)

PHPackages © 2026

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