21/07
2013
dev-master
9999999-devsimple Captcha maker.
MIT
The Requires
- php >=5.3.0
The Development Requires
captcha
simple Captcha maker.
This is Captcha library for php., (*1)
, (*2)
composer.json
, (*3)
{ "require": { "ackintosh/captcha": "dev-master" } }
$ php composer.phar install
<?php require_once 'vendor/autoload.php'; use Ackintosh\Captcha; use Ackintosh\CaptchaConfig; $cap = new Captcha(CaptchaConfig::instance()); $cap->output();
We can override setting., (*4)
<?php $config = array( 'type' => 'jpeg', 'width' => 200, 'height' => 100, 'seeds' => 'ABCDEFG1234567', 'stringLength' =>10, ); $cap = new Captcha(CaptchaConfig::instance($config)); $cap->output();
<?php require_once 'vendor/autoload.php'; if (Ackintosh\Captcha::isValidCode($_POST['code'])) echo 'ok'; else echo 'ng';
simple Captcha maker.
MIT
captcha