PHPackages                             minetro/seznamcaptcha - 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. [Security](/categories/security)
4. /
5. minetro/seznamcaptcha

Abandoned → [contributte/seznamcaptcha](/?search=contributte%2Fseznamcaptcha)ArchivedLibrary[Security](/categories/security)

minetro/seznamcaptcha
=====================

SeznamCaptcha to Nette Framework

0.5(5y ago)24.0k2MITPHPPHP &gt;=7.2

Since May 15Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/contributte/seznamcaptcha)[ Packagist](https://packagist.org/packages/minetro/seznamcaptcha)[ Docs](https://github.com/contributte/seznamcaptcha)[ RSS](/packages/minetro-seznamcaptcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/f19a494fca16e93aeb88e13b9ca3d497e0d8ef6237c7b25d3ca5fe2d63a416c4/68747470733a2f2f686561746261646765722e6e6f772e73682f6769746875622f726561646d652f636f6e74726962757474652f73657a6e616d636170746368612f3f646570726563617465643d31)](https://camo.githubusercontent.com/f19a494fca16e93aeb88e13b9ca3d497e0d8ef6237c7b25d3ca5fe2d63a416c4/68747470733a2f2f686561746261646765722e6e6f772e73682f6769746875622f726561646d652f636f6e74726962757474652f73657a6e616d636170746368612f3f646570726563617465643d31)

 [![](https://camo.githubusercontent.com/a8b1cd856d7d396fdebbe46947cc3507490acc267a02361e5e53bb7b820c95c3/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e)](https://bit.ly/ctteg) [![](https://camo.githubusercontent.com/86d6416fc04f8bcc3daa7bf881526b9953b9726b1164d05c157c8713e3a73418/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77)](https://bit.ly/cttfo) [![](https://camo.githubusercontent.com/5d170ab94e6d594609561e16fe0f9e4293968fbd4dfcfafc5e11efc1415ef09c/68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534)](https://contributte.org/partners.html)

 Website 🚀 [contributte.org](https://contributte.org) | Contact 👨🏻‍💻 [f3l1x.io](https://f3l1x.io) | Twitter 🐦 [@contributte](https://twitter.com/contributte)

Disclaimer
----------

[](#disclaimer)

⚠️This project is no longer being maintained.Composer[`contributte/seznamcaptcha`](https://packagist.org/packages/contributte/seznamcaptcha)Version[![](https://camo.githubusercontent.com/fa6ebe893ad53f935ba6579e37e1cf33f973da8f4b1c3ba8836b1e011808b368/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f636f6e74726962757474652f73657a6e616d63617074636861)](https://camo.githubusercontent.com/fa6ebe893ad53f935ba6579e37e1cf33f973da8f4b1c3ba8836b1e011808b368/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f636f6e74726962757474652f73657a6e616d63617074636861)PHP[![](https://camo.githubusercontent.com/e04f0e3fda763b8576d4a04c78e80bae8069d9b73de35f27ba3f1702475c2fba/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f636f6e74726962757474652f73657a6e616d63617074636861)](https://camo.githubusercontent.com/e04f0e3fda763b8576d4a04c78e80bae8069d9b73de35f27ba3f1702475c2fba/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f636f6e74726962757474652f73657a6e616d63617074636861)License[![](https://camo.githubusercontent.com/567ddabfd4b10d93c90744f85cc9708bd2cb14730599bd35aa9c915b481d5de3/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f73657a6e616d63617074636861)](https://camo.githubusercontent.com/567ddabfd4b10d93c90744f85cc9708bd2cb14730599bd35aa9c915b481d5de3/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f73657a6e616d63617074636861)Usage
-----

[](#usage)

To install latest version of `contributte/seznamcaptcha` use [Composer](https://getcomposer.org).

```
composer require contributte/seznamcaptcha
```

Configuration
-------------

[](#configuration)

### Extension Registration

[](#extension-registration)

```
extensions:
	captcha: Contributte\SeznamCaptcha\DI\SeznamCaptchaExtension
```

### Options

[](#options)

By default is `auto: on` and `method: http`, you can disable it and bind addCaptcha to your forms by yourself.

```
captcha:
	auto: off # on | off
	method: xmlrpc # http | xmlrpc
```

Form
----

[](#form)

Just register an extension and keep `auto` argument as it is.

```
use Nette\Application\UI\Form;

protected function createComponentForm()
{
	$form = new Form();

	$form->addCaptcha('captcha')
		->setRequired('Are you robot?');

	$form->addSubmit('send');

	$form->onSuccess[] = function (Form $form) {
		dump($form['captcha']);
	};

	return $form;
}
```

Rendering
---------

[](#rendering)

### Automatic

[](#automatic)

```
{control form}
```

### Manual

[](#manual)

It needs a `CaptchaContainer` consists of 2 inputs `image` and `code`.

```

    {input captcha-image}
    {input captcha-code}

```

Advanced Example
----------------

[](#advanced-example)

```
use Minetro\SeznamCaptcha\Forms\CaptchaHash;
use Minetro\SeznamCaptcha\Forms\CaptchaImage;
use Minetro\SeznamCaptcha\Forms\CaptchaInput;
use Minetro\SeznamCaptcha\Provider\CaptchaValidator;
use Minetro\SeznamCaptcha\Provider\ProviderFactory;
use Nette\Application\UI\Form;

/** @var ProviderFactory @inject */
public $providerFactory;

protected function createComponentForm()
{
	$form = new Form();

	$provider = $this->providerFactory->create();
	$form['image'] = new CaptchaImage('Captcha', $provider);
	$form['hash'] = new CaptchaHash($provider);
	$form['code'] = new CaptchaInput('Code');

	$form->addSubmit('send');

	$form->onValidate[] = function (Form $form) use ($provider) {
		$validator = new CaptchaValidator($provider);

		$hash = $form['hash']->getHttpHash();
		$code = $form['code']->getHttpCode();

		if ($validator->validate($code, $hash) !== TRUE) {
			$form->addError('Are you robot?');
		}
	};

	$form->onSuccess[] = function (Form $form) {
		dump($form);
	};

	return $form;
}
```

For better usability add this functionality to your `BaseForms`, `BaseFormFactory` or something like this. You can also create a trait for it.

Versions
--------

[](#versions)

StateVersionBranchNettePHPdev`^0.6``master`3.0+`>=7.2`stable`^0.5``master`3.0+`>=7.2`stable`^0.4``master`2.4+`>=5.6`Development
-----------

[](#development)

This package was maintained by these authors.

[ ![](https://avatars2.githubusercontent.com/u/538058?v=3&s=80)](https://github.com/f3l1x)---

Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this package.

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance54

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~419 days

Total

5

Last Release

1966d ago

PHP version history (3 changes)0.1PHP &gt;= 5.5

0.3PHP &gt;= 5.6

0.5PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (36 commits)")[![petrparolek](https://avatars.githubusercontent.com/u/6066243?v=4)](https://github.com/petrparolek "petrparolek (6 commits)")[![josefbenjac](https://avatars.githubusercontent.com/u/6731626?v=4)](https://github.com/josefbenjac "josefbenjac (1 commits)")[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (1 commits)")[![vody105](https://avatars.githubusercontent.com/u/22433893?v=4)](https://github.com/vody105 "vody105 (1 commits)")

---

Tags

captchacontributteformsnette-frameworkseznam-captchanettesecuritycaptchaFormsseznamcontributte

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/minetro-seznamcaptcha/health.svg)

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

###  Alternatives

[gregwar/captcha-bundle

Captcha bundle

3524.7M32](/packages/gregwar-captcha-bundle)[contributte/recaptcha

Google reCAPTCHA for Nette - Forms

421.3M4](/packages/contributte-recaptcha)[contributte/forms-multiplier

Multiplier for nette forms

281.4M3](/packages/contributte-forms-multiplier)[contributte/forms-wizard

Wizard component for nette/forms

15783.7k](/packages/contributte-forms-wizard)[webchemistry/forms-multiplier

Multiplier for nette forms

2860.9k](/packages/webchemistry-forms-multiplier)[s1syphos/php-simple-captcha

Simple captcha generator

2737.8k6](/packages/s1syphos-php-simple-captcha)

PHPackages © 2026

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