Download the PHP package lifei6671/php-captcha without Composer
On this page you can find all versions of the php package lifei6671/php-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lifei6671/php-captcha
More information about lifei6671/php-captcha
Files in lifei6671/php-captcha
Download lifei6671/php-captcha
More information about lifei6671/php-captcha
Files in lifei6671/php-captcha
Vendor lifei6671
Package php-captcha
Short Description One php captcha
License MIT
Homepage https://github.com/lifei6671/php-captcha
Package php-captcha
Short Description One php captcha
License MIT
Homepage https://github.com/lifei6671/php-captcha
Keywords captcha
Please rate this library. Is it a good library?
Informations about the package php-captcha
php-captcha
简单的php验证码库。
PHP生成验证码图片
PHP生成验证码的原理:使用PHP的GD库,生成一张带验证码的图片,并将验证码保存在Session中。PHP生成验证码的大致流程有:
1、产生一张png的图片;
2、为图片设置背景色;
3、设置字体颜色和样式;
4、产生指定位数的随机的验证码;
5、把产生的每个字符调整旋转角度和位置画到png图片上;
6、加入噪点和干扰线防止注册机器分析原图片来恶意破解验证码;
7、输出图片;
8、释放图片所占内存。
图片实例
安装
使用 Composer
用法
直接输出图片:
保存图片到硬盘:
获取验证码文字:
正在使用
All versions of php-captcha with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
ext-gd Version *
ext-gd Version *
The package lifei6671/php-captcha contains the following files
Loading the files please wait ....