dearmadman/captcha
最新稳定版本:v0.0.1
Composer 安装命令:
composer require dearmadman/captcha
包简介
Captcha for Laravel 5
README 文档
README
Simple Captcha for laravel 5
Preview

Installation
The Captcha Service Provider can be installed via Composer by requiring the
dearmadman/captcha package and setting the minimum-stability to dev (required for Laravel 5) in your
project's composer.json.
{
"require": {
"laravel/framework": "5.0.*",
"dearmadman/captcha": "dev-master"
},
"minimum-stability": "dev"
}
Usage
To use the Captcha Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.
Find the providers key in app/config/app.php and register the Captcha Service Provider.
'providers' => array( // ... 'Dearmadman\Captcha\CaptchaServiceProvider', )
Example Usage
// [your site path]/app/routes.php Route::get('captcha',function(Captcha $captcha){ $captcha->InitFromArray([ 'width'=>100, 'height'=>50, 'chinese'=>true, 'char_num'=>5, 'line_x'=>3, 'line_y'=>2, 'pixel'=>300 ]); return $captcha->PushImage(); }); Route::get('check',function(Captcha $captcha){ return $captcha->check('板迷的细财')?'ok':'wrong'; });
^_^
统计信息
- 总下载量: 80
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-25