承接 cohensive/recaptcha 相关项目开发

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

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

cohensive/recaptcha

Composer 安装命令:

composer require cohensive/recaptcha

包简介

Laravel 4 bridge for recaptcha/php5

README 文档

README

Installation

Add following require to your composer.json file:

    "cohensive/recaptcha": "dev-master"

Then run composer install or composer update to download it and autoload.

In providers array you need to add new package:

'providers' => array(

    //...
    'Cohensive\Recaptcha\RecaptchaServiceProvider',
    //...

)

In aliases:

'aliases' => array(

    //...
    'Recaptcha' => 'Cohensive\Recaptcha\Facades\Recaptcha'
    //...

)

And after all that, we need to add config file, which will hold our private and public keys. Run following line in command line:

    php artisan config:publish cohensive/recaptcha

Your public and private key could be found in Google reCaptcha account page.

Usage

Insert Recaptcha javascript code into your page (check your Google reCaptcha account).

Then, all you need is to insert a new rule to your validator on your POST processing page:

  return [
    'recaptcha_response_field' => 'recaptcha'
  ];

recaptcha rule can be added to any input attribute, just make sure to translate it correcly in your language file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-09-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固