Fix case sensitivity in app folders

This commit is contained in:
Hamza-Ayed
2026-05-03 20:33:29 +03:00
parent f78c8f5864
commit e2acce23c0
6 changed files with 0 additions and 0 deletions

21
app/core/Security.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
/**
* Simple Security Helpers
*/
declare(strict_types=1);
namespace App\Core;
final class Security
{
public static function sanitize(string $data): string
{
return htmlspecialchars(strip_tags(trim($data)));
}
public static function generateRandomString(int $length = 32): string
{
return bin2hex(random_bytes($length / 2));
}
}