Download the PHP package hpd/captcha without Composer

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

Captcha for Laravel

Preview

Table of Contents

What's New

** version 2.0.0

The addNoise method accepts two required arguments (width and height) and an optional associative array as the third argument to customize the noise effect.

Parameters

Option Type Default (if not provided) Description
xRange array[int,int] Determined automatically based on difficulty Specifies the horizontal step size for applying noise. The first value is the minimum step, and the second is the maximum step. Smaller steps result in denser noise horizontally.
yRange array[int,int] Determined automatically based on difficulty Specifies the vertical step size for applying noise. The first value is the minimum step, and the second is the maximum step. Smaller steps result in denser noise vertically.
mode string 'cross' Determines how the noise is applied:
'vertical' → vertical lines of noise
'horizontal' → horizontal lines of noise
'cross' → both vertical and horizontal lines
'random' → randomly scattered pixels
density float 0.1 Used only when mode is 'random'. Defines the fraction of total image pixels that will contain noise. Must be between 0.0 and 1.0.
intensity float 1.0 Multiplier for the color intensity of the noise. 1.0 means full brightness, 0.0 results in black. This can make the noise lighter or darker.

Example Usage

Installation

Require this package with composer:

Usage

It doesn't need to add CaptchaServiceProvider to the providers array in config/app.php.

Configuration

To use your own settings, first publish the config file:

Then customize configuration properties as you like.

Properties

The following properties are customizable from published config.php file.

How to use

Session mode

Session mode is designed for traditional web forms. The captcha solution is stored in the server-side session and validated against the user’s input when the form is submitted

You can use the following helper functions in your project to get a Captcha image.

Pass the configuration name to the function. If omitted, the 'default' configuration is

Example

Get Captcha image src:

Get img element:

Validation

API mode

API mode is designed for single-page applications (SPA), mobile apps, or any frontend that communicates with the backend through JSON APIs. Instead of sessions, the captcha state is temporarily stored in the cache. A captcha_token is returned and must be included in subsequent requests.

Example

Validation

License

This project is licensed under the Proprietary License.

Donate

If you like this project and want to support it, feel free to send USDT donations to the addresses below. Thank you! 🙏

Tether Network Address
Tether ERC20 0x2bFcEcCF2f25d48CbdC05a9d55A46262a0A6E542
Tether TRC20 TEHzXzg4nMp7MW5pVH6fGmuq7JBaFovMW3

Your support allows me to continue maintaining and improving this project. Thank you so much for your contribution! 🙏

Check Out My Other Projects

Hey! If you liked this package, you might enjoy some of my other work too:

I'm always building and sharing new stuff — feel free to take a look, star ⭐ what you like, or even open a PR!


All versions of captcha with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
ext-gd Version *
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.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 hpd/captcha contains the following files

Loading the files please wait ....