Download the PHP package ms41/laravel-captcha13 without Composer
On this page you can find all versions of the php package ms41/laravel-captcha13. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ms41/laravel-captcha13
More information about ms41/laravel-captcha13
Files in ms41/laravel-captcha13
Package laravel-captcha13
Short Description A Laravel 13 compatible CAPTCHA package
License MIT
Informations about the package laravel-captcha13
Laravel Captcha 13
A simple, customizable, and Laravel 13 compatible CAPTCHA package for generating image-based captchas with session-based validation.
This package provides:
- CAPTCHA image generation
- Session-based validation
- Easy Blade integration
- Configurable size, route, colors, and font
- Laravel auto-discovery support
Preview
Captcha Example
Add your preview image(s) here after uploading screenshots to your GitHub repository.
Example 1
Example 2
Requirements
PHP 8.3+ Laravel 13+ Installation
Install the package via Composer:
Package Auto-Discovery
The package supports Laravel package auto-discovery.
So after installation, you do not need to manually register the service provider or alias.
Publish Configuration
If you want to customize the package configuration, publish the config file:
This will publish:
config/captcha.php
Basic Usage in Blade
You can render the captcha image in any Blade view like this:
Basic Form Example
Validation Example (Controller)
Validation Example (Route Closure)
Facade Usage
The package provides a facade:
Available Methods
Render captcha image HTML
Validate captcha input
Configuration
After publishing the config file, you can customize the package using:
config/captcha.php
Default Configuration
Configuration Options
Notes
- The package uses session-based validation, so the captcha image route must work under the
webmiddleware. - A new captcha is generated whenever the captcha image is refreshed.
- The package appends a timestamp query parameter to the image URL to prevent browser caching.
- If a custom font is not provided, the package uses its internal default font automatically.
Recommended Package Route
If you want to understand how the package route works internally, it should use the web middleware because the package relies on sessions:
All versions of laravel-captcha13 with dependencies
illuminate/support Version ^13.0
illuminate/routing Version ^13.0
illuminate/session Version ^13.0
illuminate/validation Version ^13.0
intervention/image Version ^3.11