wikichua/captcha
captcha-laravel
Composer.json:
require: "wikichua/captcha": "dev-master"
Provider:
'Wikichua\Captcha\CaptchaServiceProvider',
Alias:
'Captcha' => 'Wikichua\Captcha\Facades\Captcha',
Sample usage:
Route::any('test',function() { if (Request::getMethod() == 'POST') { $rules = array('thecaptcha' => array('required', 'captcha')); $validator = Validator::make(Input::all(), $rules); if ($validator->fails()) { echo 'Captcha failed'; } else { echo 'Captcha passed'; } }
$content = Form::open(['to'=>URL::to(Request::segment(1))]);
$content .= '<p>' . Captcha::imgUrl(['class'=>'testing']) . '</p>';
$content .= '<p>' . Form::text('thecaptcha') . '</p>';
$content .= '<p>' . Form::submit('Check') . '</p>';
$content .= Form::close();
return $content;
});
Related Packages
erirk/paypalpayment
laravel-paypalpayment is simple package help you process direct credit card paym...
0
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
628,058,007
9,707