Download the PHP package mortezaashrafi/filament-shield-captcha without Composer

On this page you can find all versions of the php package mortezaashrafi/filament-shield-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-shield-captcha

mortezaashrafi/filament-shield-captcha

A production-grade inline Image CAPTCHA field for Filament forms.

Screenshots

Panel (Light / Dark):

Filament panel CAPTCHA (Light) Filament panel CAPTCHA (Dark)

Login page (Light / Dark):

Filament login CAPTCHA (Light) Filament login CAPTCHA (Dark)

Compatibility

Package Versions
PHP 8.2, 8.3, 8.4, 8.5
Laravel 11, 12, 13
Filament 3, 4, 5

Installation

GD requirement

This package requires PHP GD with FreeType support (for imagettftext()).

Common installs:

Configuration

Publish the config file:

Config file: config/filament-shield-captcha.php

Usage in Forms

Customization (Fluent API)

Method Description Range / Limits
->length(int) Number of characters in CAPTCHA 1 to 12 (recommended 4-6)
->width(int) Image width in pixels min 100 (recommended 220)
->height(int) Image height in pixels min 30 (recommended 60)
->fontSize(int) Font size in pixels 12 to 40 (recommended 26)
->font(string) Use bundled font key (vazirmatn, noto_sans) -
->rtl() Force RTL mode (uses rtl font from config) -
->ltr() Force LTR mode (uses ltr font from config) -
->numeric() Numbers only (0-9) -
->alphabetic() Letters only (A-Z) -
->alphanumeric() Letters and numbers (Default) -
->symbols(string) Alphanumeric + custom symbols default symbols: !@#$%^&*+-=
->charset(string) Completely custom character set -
->caseSensitive(bool) Require exact case matching default: false
->noise(level, lines, dots) Adjust image noise complexity level 0-5 (default 2)
->ttl(int) Challenge expiry in seconds default 300
->maxAttempts(int) Max wrong attempts before lock default 5

Example with full options:

Integration with Filament Auth Pages

To add CAPTCHA to Filament's built-in Login, Register, or Reset Password pages (v5), follow these steps:

1. Create Custom Auth Components

Extend the original Filament Auth pages and use the InteractsWithCaptcha trait.

Login Page: app/Filament/Pages/Auth/Login.php

Register Page: app/Filament/Pages/Auth/Register.php

Password Reset Page: app/Filament/Pages/Auth/RequestPasswordReset.php

2. Register Custom Pages in Panel Provider

Update your AdminPanelProvider.php (or other panel provider) to use your custom Auth pages:

RTL / LTR Support

The package automatically detects the current locale direction. You can configure default fonts for each direction in the config file:

Security & Architecture

Fonts

Bundled (OFL):

To use your own font:

Testing

License

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


All versions of filament-shield-captcha with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2 || ^8.3 || ^8.4 || ^8.5
ext-gd Version *
filament/filament Version ^3.0 || ^4.0 || ^5.0
illuminate/cache Version ^11.0 || ^12.0 || ^13.0
illuminate/contracts Version ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^11.0 || ^12.0 || ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mortezaashrafi/filament-shield-captcha contains the following files

Loading the files please wait ...