PHP Luminova: Common Helpers
Find the Luminova utility class for text cleanup, value checks, masking, conversions, or identifiers.
Class Guides
| Guide | Use it to |
|---|---|
| Text | Normalize text, extract parts of a string, and truncate multibyte strings. |
| Validator | Verify identifiers and check email addresses, URLs, phone values, numbers, and coordinates. |
| Formatter | Format phone numbers, extract domains, and filter input strings. |
| Mask | Hide parts of values before display. |
| Converter | Convert units and format values. |
| Encoder | Encode and decode values or compress data. |
| Random | Generate deterministic identifiers, random strings, bytes, numbers, and barcode candidates. |
| UUID | Generate and validate UUIDs. |
| Password | Check password strength. |
Example
Normalize a display name, validate an email address, and mask the address for display.
use Luminova\Utility\Mask;
use Luminova\Utility\Text;
use Luminova\Utility\Validator;
$name = Text::normalize(' Amina Yusuf ');
$email = '[email protected]';
if (Validator::isEmail($email)) {
echo $name . ' (' . Mask::email($email) . ')';
}