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:
kor-elf committed 2023-06-28 17:24:41 +06:00
1 parent f2ecdfcf97
commit c1cf5a1ae9
2 files changed
+44

No files matched your search

+8
View 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;
}