New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

nikazooz/laravel-captcha

Laravel package to generate and validate CAPTCHA.
4,564
Install
composer require nikazooz/laravel-captcha
Latest Version:v1.7.0
PHP:^7.2|^8.0
Laravel:6 – 13
Older releases:5
License:MIT
Last Updated:Mar 24, 2026
Links: GitHub  ·  Packagist
Maintainer: nikazooz

Laravel Captcha

Package for Laravel to easily generate and validate CAPTCHA.

Requirements

Version PHP Laravel Status
0.1.* >=7.0 ^5.5 Not supported
1.* >=7.2 >=6.0 Supported

ImageMagick or GD extension for PHP is required to use with included drivers.

Verification code is stored in session, so session needs to be active on validated route and on web middleware group.

Installation

composer require nikazooz/laravel-captcha

Configuration

To change configurations, you need to publish the configurations file.

php artisan vendor:publish --provider="Nikazooz\LaravelCaptcha\CaptchaServiceProvider"

Reading the config file is the best way to find out what can be configured.

Usage

Easily get URL at which CAPTCHA image is available using the facade:

<?php

use Nikazooz\LaravelCaptcha\Facades\Captcha;

echo Captcha::url();

It adds v query parameter with random value in order to avoid browser caching.

To validate the code sent in request, use captcha validator, registered by the package, on that parameter.

If you need the verification code, for example in tests, you can get it with the facade: Captcha::code();

License

The package is open-sourced software licensed under the MIT license.

Related Packages

bonecms/laravel-captcha

Captcha integration for Laravel

147,316 76
eusonlito/captcha

A simple package to generate and check captchas

18,913 6
mehedi/laravel-captcha

Captcha integration for the Laravel 6

13,630 0
iorme/simplecaptcha

Create simple captcha using php

2,425 1
swjtuhyq/captcha

Lumen 9 & 10 Captcha Package

44 0

Version History

Version Released PHP Laravel License
v1.7.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v1.6.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v1.5.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0 MIT
v1.4.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0 MIT
v1.3.0 ^7.2|^8.0 ^6.0|^7.0|^8.0 MIT