Skip to content

Esse componente gera imagens captcha para uso em sites PHP.

License

Notifications You must be signed in to change notification settings

iaematt/captcha

Repository files navigation

Captcha @iaematt

Maintainer Source Code Software License

This component is a simple captcha image generator

Esse componente é um simples gerador de imagem captcha.

Installation

Captcha is available via Composer:

"iaematt/captcha": "1.0.*"

or run

composer require iaematt/captcha

Documentation

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

Please see CONTRIBUTING for details.

Support

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

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

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Esse componente gera imagens captcha para uso em sites PHP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published