Download the PHP package thytanium/captcha without Composer

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

Captcha

Install

Edit your composer.json file

Laravel 4

Laravel 5

Run composer update to install the package. Then add the following to app.php

Then, you have to publish the configuration file.

Use

To use it just put this HTML code in your form next to a text input.

Validate

To validate the entered text into the input, put this in your validation rules:

Options

You can edit config/captcha.php configuration file to change behavior of captcha.

String length

By default, string length is 6 characters. You can change it to whatever length you want. Remember, you might have to change width also, is not auto-calculated.

Width and height

By defaut, width and height are 200px x 50px. You can change it to any other size.

Case sensitive

By default case verification is enabled. Change it to false to disable it.

Letters case

If you want the captcha to show only upper letters, lower letters or mixed.

Show letters/numbers

If you want a captcha with letters only:

If you want a captcha with numbers only:

If you want a captcha with both letters and numbers:

Character angle

By default, character angle is 15. This will generate an captcha with characters angle between 0 and 15 degrees. Change it to whatever you want. If you want the characters in "straight" way, just put this value to 0 (zero).

Separation

This is separation between characters. Default is 30. The higher the more separated.

Background grid

By default, background shows 20 vertical lines and 5 horizontal lines (one every 10 pixels). You can show as many lines as you want.

Colors

Colors must be provided in RGB notation [rrr,ggg,bbb].

Background color

By default is 250,250,250 (almost white)

Line color

By default is 220,220,220 (very light gray)

Font colors

This is an array of choices. You can add as many colors as you want and the characters will rendered is this colors randomly.

Font

This package works with TrueType (.ttf) fonts.

Four font choices are already provided: Prototype (default), Impact, BrianJames and Spinwerad. All of them thanks to 1001freefonts.

Prototype

Prototype

Impact

Impact

BrianJames

BrianJames

Spinwerad

Spinwerad

Font size

By default, font size is 30px. Change it to whatever you want.

Image quality

By default, and I recommend to keep it that way, image quality is 100.


All versions of captcha with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 4.2.*
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 thytanium/captcha contains the following files

Loading the files please wait ....