承接 teepluss/recaptcha 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

teepluss/recaptcha

最新稳定版本:0.1

Composer 安装命令:

composer require teepluss/recaptcha

包简介

Google No CAPTCHA reCAPTCHA for Laravel.

README 文档

README

Are you a robot? Introducing “No CAPTCHA reCAPTCHA”

reCAPTCHA from Google

Installation

To get the lastest version of Recaptcha simply require it in your composer.json file.

"teepluss/recaptcha": "dev-master"

You'll then need to run composer install to download it and have the autoloader updated.

Once reCAPTCHA is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key.

'providers' => array(
    'Teepluss\Recaptcha\RecaptchaServiceProvider'
)

Publish config using artisan CLI.

php artisan config:publish teepluss/recaptcha

Publish view using artisan CLI.

php artisan view:publish teepluss/recaptcha

Usage

The first you need to config key and secret that get from Google

Display captcha on view

echo Recaptcha::render();

// or

echo Form::recaptcha();

Verify captcha from the server

$v = Validator::make(
    Input::all(),
    array(
        'g-recaptcha-response' => 'required|recaptcha'
    ),
    array(
        'g-recaptcha-response.recaptcha' => 'Please verify that you are not a robot.'
    )
);

if ($v->fails())
{
    var_dump($v->messages());
}

Support or Contact

If you have some problem, Contact teepluss@gmail.com

Support via PayPal

统计信息

  • 总下载量: 118
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-11