eleme/easycaptcha

PHP 验证码库

v0.2.2 2015-06-07 14:53 UTC

This package is not auto-updated.

Last update: 2024-09-28 15:57:17 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Stable Status

PHP 验证码库。

使用 Composer 安装

"require": {
    "eleme/easycaptcha": "~0.1"
}

示例

<?php

use Eleme\EasyCaptcha\Phrase\Factory as PhraseFactory;
use Eleme\EasyCaptcha\Factory;

require __DIR__.'/../vendor/autoload.php';
header('Content-Type: image/jpeg');
$factory = new Factory();
$phrase = new PhraseFactory();
$factory->render($phrase->build());

演示

git clone http://github.com/thbourlove/easycaptcha
cd easycaptcha
make build
make demo