PHP code example of suitmedia / captcha

1. Go to this page and download the library: Download suitmedia/captcha library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

suitmedia / captcha example snippets


    'providers' => array (

        //...

        'Wicochandra\Captcha\CaptchaServiceProvider'
    ),

    //...

    'aliases' => array (

        //...

        'Captcha'         => 'Wicochandra\Captcha\Facade\Captcha',
    ),

    //Will return http://[web url]/captcha/image
    Captcha::url();

   $rules = array(
        '[input name]' => 'captcha'
    );

    Captcha::isValid('captcha-input');  //return true if valid. Otherwise return false
bash
    php artisan vendor:publish