承接 php-quickorm/captcha 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

php-quickorm/captcha

Composer 安装命令:

composer require php-quickorm/captcha

包简介

A library implemented by PHP to generate captcha easily.

README 文档

README

What is it

A library implemented by PHP to generate captcha easily.

Requirements

  • PHP 5 +
  • PHP GD
  • composer

Please assure that you have installed php-gd, and install it via apt install php7.0-gd or apt install php5-gd is recommended.

Installation

Here are two ways to install:

  • Using composer:

    composer require php-quickorm/captcha
    
  • or download the Captcha.php and arial.ttf to your project and import it by require "Captcha.php";

Usage

The captcha has three levels, and the first is the easiest.

Simple

image.php

$captcha = new Captcha();
$_SESSION['code'] = $captcha->getCode();
$captcha->render();

index.html

<img src="image.php">

Advanced Options

// The Captcha has three levels, and the first is the easiest.
$level = 3; 
// Case Sensitive
$caseSensitive = false;


$captcha = new Captcha($level, $caseSensitive);

// Get the code
$code = $captcha->getCode();

// Get the php-gd image resource
$im = $captcha->getImageResource();

// Check the code if correct
$captcha->check("AbcD");

// Send HTTP response as a image
$captcha->render();

Here is a demo: https://github.com/php-quickorm/Captcha/tree/master/demo

统计信息

  • 总下载量: 245
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固