PHP Classes

FCaptcha: Verify if the user is a human with a CAPTCHA image

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-06-30 (8 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 70 All time: 10,227 This week: 110Up
Version License PHP version Categories
fcaptcha 1.0Custom (specified...5PHP 5, Graphics, Validation
Description 

Author

This package can verify if the user is a human with a CAPTCHA image.

It can generate an image that displays a text string generated randomly.

The generated text is stored in a session variable.

The package also verifies if the text entered by a user matches what is displayed in the image by checking the session variable.

Picture of Faris AL-Otabi
  Performance   Level  
Name: Faris AL-Otabi <contact>
Classes: 13 packages by
Country: Saudi Arabia Saudi Arabia
Age: 26
All time rank: 303815 in Saudi Arabia Saudi Arabia
Week rank: 36 Up2 in Saudi Arabia Saudi Arabia Up
Innovation award
Innovation award
Nominee: 3x

Example

<?php
session_start
();

include_once
'./src/FCaptcha.php';

$c = new FCaptcha;

if (
$_SERVER['REQUEST_METHOD'] == 'POST') {
    echo
$c->checkCaptch($_POST['captcha']) ? 'Captcha OK' : 'Captcha Bad';
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="" method="post">
        <div>
            <img src="captcha.php" alt="">
        </div>
        <div>
            <input type="text" name="captcha" id="">
        </div>
        <div>
            <button type="submit">Check</button>
        </div>
    </form>



</body>

</html>


Details

FCaptcha

Simple PHP Captcha Library

![](https://i.imgur.com/5HDJhtE.png)

License

MIT


  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file captcha.php Example Example script
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file FCaptcha.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:70
This week:0
All time:10,227
This week:110Up