Download the PHP package souravmsh/easy-captcha without Composer

On this page you can find all versions of the php package souravmsh/easy-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 easy-captcha

Easy Captcha

Latest Version on Packagist Total Downloads

An easy, lightweight, pure image-based CAPTCHA package for Laravel (Requires ext-gd). No third-party APIs needed for local generation. The CAPTCHA generates standard image data dynamically directly via PHP. Also supports Google reCAPTCHA v2/v3 and Cloudflare Turnstile (Latest!).

View Landing Page & Documentation

Installation

The package is auto-discovered by Laravel. If auto-discovery is disabled, register the service provider manually (optional):

Laravel 11+ — in bootstrap/providers.php:

Laravel 7–10 — in config/app.php under providers:

Configuration

Optionally publish the configuration file to customize CAPTCHA sizes and colors:

To overwrite an already published config:

You can change the CAPTCHA type in config/easy_captcha.php, or easily turn the CAPTCHA off completely for local development/testing using your .env file:

Bundled Fonts (Latest!)

The package now comes with built-in fonts that you can use by name in your .env or config:

Supported types:

Setting up Google reCAPTCHA

If you choose google as the CAPTCHA type, our blade directive and validation facade will automatically hook into Google's APIs. If you want to use older version like v3 then spefify in config file, default is v3. Add your site/secret keys inside the .env:

Setting up Cloudflare Turnstile (Latest!)

If you choose turnstile as the CAPTCHA type, our blade directive and validation facade will automatically hook into Cloudflare's APIs. Add your site/secret keys inside the .env:

Usage

Displaying the CAPTCHA image

In your Blade form, you can render an image tag manually:

This simple blade directive handles showing the <img /> and attaching a neat [Reload] button next to it!

Or you can use the Facade manually if you need more control:

Validating the CAPTCHA

Once the form is submitted, validate the user's input:

Support

Laravel versions 7, 8, 9, 10, 11, 12, 13 are fully supported. PHP 7.2.5+ & 8.0+ are required along with ext-gd.


All versions of easy-captcha with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5|^8.0
ext-gd Version *
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^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 souravmsh/easy-captcha contains the following files

Loading the files please wait ...