Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
demo
lib
.DS_Store
README.MD
README.md

README.MD

sunCaptcha

sunCaptcha is a php libraries for creating captcha in chinese idioms.

Requirement

It base on php and the GD libraries must be installed.

USAGE

Include the class in the lib:

    include("../lib/sunCaptcha.php");

Then,Instant a sunCaptcha object:

    $captcha = new SunCaptcha();

Final,configure params and call the create() method:

    $captcha->width = 160;
    $captcha->height = 80;
    $captcha->create();

One captcha picture like:

Change type like:

$captcha->type = 2;

Effect:

Or add some wave:

$captcha->wave = 1;

In the form like:

AUTHOR

kirch weibo: @kirch website: http://lian.lu/kirch

LICENSE

Copyright 2012 kirch

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Enjoy it!

Something went wrong with that request. Please try again.