项目作者: stefanak-michal

项目描述 :
Geometry captcha generate image with simple geometry example.
高级语言: PHP
项目地址: git://github.com/stefanak-michal/Geometry-captcha.git
创建时间: 2013-09-20T16:02:04Z
项目社区:https://github.com/stefanak-michal/Geometry-captcha

开源协议:

下载


Geometry-captcha

Geometry captcha generate image with simple geometry example.
You can use it two ways, directly show generated image or save it to file.

Example of use:

  1. generate image to file, save filename and result to database
  2. draw it to form with hidden input with identificator (image filename or some ID from database)
  3. after submit form check user result towards database

Base usage:

  1. <?php
  2. $captcha = new componentCaptcha();
  3. $result = $captcha->create();
  4. if (true)
  5. {
  6. //direct show image
  7. $captcha->show();
  8. }
  9. else
  10. {
  11. //save image to file
  12. $captcha->save('./captcha_1657651.jpg');
  13. }
  14. ?>

\
If you like this project and you want to support me, buy me a tea :)

https://ko-fi.com/michalstefanak