定制 iorme/simplecaptcha 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

iorme/simplecaptcha

最新稳定版本:v0.1

Composer 安装命令:

composer require iorme/simplecaptcha

包简介

Create simple captcha using php

关键字:

README 文档

README

Simple PHP captcha generator for Laravel 4

Installation

composer.json

"require": {
		"iorme/simplecaptcha": "dev-master"
	},

install

$ /path/to/composer.phar install

Usage

Add the service provider, open app/config/app.php and add new item to the providers array :

'Iorme\SimpleCaptcha\SimpleCaptchaServiceProvider',

then add the alias to the aliases array:

'SimpleCaptcha' => 'Iorme\SimpleCaptcha\Facades\SimpleCaptcha',

On the view file :

<p>
    {{ HTML::image(URL::to('simplecaptcha'),'Captcha') }}
    {{ Form::label('captcha', '* Captcha:') }}
    {{ Form::text('captcha') }}
</p>

check the captcha string on the controllers :

$check = SimpleCaptcha::check($input['captcha']);

if($check == true) {
	echo "captcha string is right";
} else {
	echo "captcha string is wrong";
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-06-20