refactor(console, id, config): Dialog mode in Console, consolidated id modul, added config support for ini directives

This commit is contained in:
2025-11-04 13:44:27 +01:00
parent 980714f656
commit bfce93ce77
110 changed files with 2828 additions and 774 deletions

View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace App\Framework\Id\Ulid;
/**
* Validiert ULID-Strings.
*/
final readonly class UlidValidator
{
/**
* @param string $ulid
* @return bool true, wenn $ulid exakt 26 Zeichen Crockford-Base32 sind
*/
public function isValid(string $ulid): bool
{
return (bool) preg_match('/^[0-9A-HJKMNP-TV-Z]{26}$/', $ulid);
}
}