This change introduces ImageLines, an interface for adding randomized lines to captcha images for enhanced security. The interface has been implemented in the Lines class. The goal is to randomize lines on captcha images to prevent bot reads.
This commit is contained in:
8
app/Captcha/Contracts/ImageLines.php
Normal file
8
app/Captcha/Contracts/ImageLines.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace App\Captcha\Contracts;
|
||||
|
||||
interface ImageLines
|
||||
{
|
||||
public function processing(Image $image, array $colors, int $lines = 3): Image;
|
||||
}
|
Reference in New Issue
Block a user