• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter3-like Captcha

#1
I have created a Captcha library that can probably be used in the same way as CodeIgniter3.

Code:
$ composer require kenjis/ci3-like-captcha

PHP Code:
use Kenjis\CI3Like\Captcha\Captcha;

$vals = [
    'word'      => random_string('numeric'4),
    'img_path'  => FCPATH 'captcha/',
    'img_url'   => base_url() . '/captcha/',
];
$cap Captcha::createCaptcha($vals);

$data = [
    'captcha_id'   => '',
    'captcha_time' => $cap['time'],
    'word'         => $cap['word'],
]; 

https://github.com/kenjis/ci3-like-captcha
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.