Download the PHP package nemwiper/laravelcaptcha without Composer

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

LaravelCaptcha

Working on Laravel 5-9. English 🇬🇧, French 🇫🇷, Spanish 🇪🇸 and Italian 🇮🇹!!!

Installation

In your composer.json file:

Run and just add in the array providers in the file config\app.php:

If your Laravel version supports autodiscovery this step is not necessary

Publish the package using the command :

Configuration

In the file config\lucbu-laravelcaptcha.php there is some parameters that you can modify: Value Description
length The length of the captcha (should be an integer)
listForbidden list of letters that won't appear in captcha
icon-play Path to icon image used to display the clicking button to hear the sounds of letters
icon-update Path to icon image used to update the captcha
background-color color of the captcha background (use red green blue notation ['red' => $red, 'green' => $green, 'blue' => $blue])
text-color color of the captcha text (use red green blue notation)
grid Is there a grid behind the letters?
space-grid Space between the line of the grid
line Is there random lines on the captcha?
filter-smooth Apply smooth filter to captcha
filter-smooth-level Level of filter
width width of the captcha image;
height height of the captcha image
width-html width of the image displayed in the view in px
height-html height of the image displayed in the view in px
sessionKey the key used to store the captcha in Session Variable
default_language the language in case we don't find the sounds for the locale

Usage

In the form view, just use the following code :

and add an input with name="captcha" for inserting the captcha.

You can validate the fields that has to be fulfill with captcha with the rule lucbularavelcaptcha :

You can set the parameters is_caseSensitive as 'true' or 'false', the validation will take care or not of matching the case (false by default).

You can generate a captcha in a controller like this :

The function will create the captcha and store into the session variable.

You can also get just the image using the route lucbu.laravelcaptcha.image or the sound with the route lucbu.laravelcaptcha.sound.

The player used to play the sound is based on HTML5. (<audio> tag)

Collaborators

@Nembie


All versions of laravelcaptcha with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.0
falahati/php-mp3 Version dev-master
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 nemwiper/laravelcaptcha contains the following files

Loading the files please wait ....