Drag-and-drop graphic verification implemented in PHP, simple and easy to use!

藏色散人
Release: 2023-04-11 07:20:01
forward
3851 people have browsed it

I recently saw some posts about drag-and-drop verification codes. Out of curiosity and an attitude of research and learning, I simply implemented the first version of drag-and-drop verification

Project address: github.com/RLOFLS/drag-captcha

Example

Drag-and-drop graphic verification implemented in PHP, simple and easy to use!

Logic:

Drag-and-drop graphic verification implemented in PHP, simple and easy to use!

##api

    ##php Drag
    • generate()
    • Generate rendering datadst, front
    • verify()
    • Verify matching results
  • js Drag
    • matchFunc()
    • Implement user drag trigger matching
    • render()
    • Render drag interface
    • matchSuccess()
    • Set the matching success style
    • matchFail()
    • Set the matching failure style
    • destroy()
    • Destroy the drag and drop interface
  • composer:
composer require rlofls/drag-captcha

Original address: https://learnku. com/articles/69652

The above is the detailed content of Drag-and-drop graphic verification implemented in PHP, simple and easy to use!. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template