PHPackages                             iaematt/captcha - 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. iaematt/captcha

ActiveLibrary

iaematt/captcha
===============

Very simple captcha for forms.

10PHP

Since Apr 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iaematt/captcha)[ Packagist](https://packagist.org/packages/iaematt/captcha)[ RSS](/packages/iaematt-captcha/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Captcha @iaematt
================

[](#captcha-iaematt)

[![Maintainer](https://camo.githubusercontent.com/cbdadf8e5e980fbed4855016335138fd21fd7c432a9ecb42bf113a71b34e4e87/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406961656d6174742d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/iaematt)[![Source Code](https://camo.githubusercontent.com/ae6d31515d0e1b61f3016c8c58827751bbe075c8a53d204ba058cd9389877240/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6961656d6174742f636170746368612d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/iaematt/captcha)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

##### This component is a simple captcha image generator

[](#this-component-is-a-simple-captcha-image-generator)

Esse componente é um simples gerador de imagem captcha.

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

[](#installation)

Captcha is available via Composer:

```
"iaematt/captcha": "1.0.*"
```

or run

```
composer require iaematt/captcha
```

Documentation
=============

[](#documentation)

##### For details on how to use the component, see the sample folder with details in the component directory.

[](#for-details-on-how-to-use-the-component-see-the-sample-folder-with-details-in-the-component-directory)

Para mais detalhes sobre como usar o componente, veja a pasta de exemplo com detalhes no diretório do componente.

@generate

```
$captcha = new \iaematt\Captcha\Generate();
$captcha->render();
```

@verify

```
$captcha = new iaematt\Captcha\Verify();
$post = $_POST;
if ($captcha->compare($post['captcha'])) {
    echo 'The code is correct';
}
```

@generate using custom font and font size

```
$captcha = new \iaematt\Captcha\Generate();
$captcha->setFontFamily(__DIR__ . '/fonts/roboto.ttf');
$captcha->setFontSize(35);
$captcha->render();
```

Contributing
============

[](#contributing)

Please see [CONTRIBUTING](https://github.com/iaematt/captcha/blob/master/CONTRIBUTING) for details.

Support
=======

[](#support)

##### Security: if you discover any security related issues, please e-mail  instead of using the issue tracker.

[](#security-if-you-discover-any-security-related-issues-please-e-mail-matheusbastosoutlookcom-instead-of-using-the-issue-tracker)

Se você descobrir algum problema relacionado à segurança, envie um e-mail para  em vez de usar o rastreador de problemas.

Credits
=======

[](#credits)

- [Matheus Bastos](https://github.com/iaematt) (Developer)

License
=======

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/iaematt/captcha/blob/master/LICENSE) for more information.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

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.

### Community

Maintainers

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

---

Top Contributors

[![iaematt](https://avatars.githubusercontent.com/u/18090574?v=4)](https://github.com/iaematt "iaematt (1 commits)")

---

Tags

captchaclasscomposerpackagistphpphp7

### Embed Badge

![Health badge](/badges/iaematt-captcha/health.svg)

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

PHPackages © 2026

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