PHPackages                             lzwanziger/regexhelper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. lzwanziger/regexhelper

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

lzwanziger/regexhelper
======================

This package helps you to validate filenames, emails and strings overall.

v1.1.0(3mo ago)02MITPHPPHP &gt;=8.0

Since Feb 12Pushed 3mo agoCompare

[ Source](https://github.com/LZviosys/regexhelper)[ Packagist](https://packagist.org/packages/lzwanziger/regexhelper)[ RSS](/packages/lzwanziger-regexhelper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

RegexHelper
===========

[](#regexhelper)

Ein PHP-Paket zum Testen von Daten mit Regex. Es können Strings, Emails, Dateinamen, URLs auf Gueltigkeit geprüft werden. IBAN´s und Telefonnummern können maskiert werden. Passwörter können auf Sicherheit geprueft werden.

Installation
============

[](#installation)

- Installieren sie das Paket mit:

```
composer require lzwanziger/regexhelper
```

Funktionen
==========

[](#funktionen)

use Lz\\Regexhelper\\RegexHelper;

- E-Mail prüfen (gibt true oder false zurück)

    - RegexHelper::validateEmail($email);
- Passwort-Sicherheit (Gibt true zurück, wenn alle Kriterien erfüllt sind)

    - RegexHelper::passwordSecurityCheck($password);
- Dateinamen prüfen (erlaubt a-z, 0-9, Bindestrich und Punkt)

    - RegexHelper::validateFilename($filename);
- URL prüfen

    - RegexHelper::validateUrl($url);
- Prüfen ob wieso ein Passwort nicht sicher ist

    - $errors = RegexHelper::getPasswordsErrors($password);
    - echo $errors; // Ausgabe koennte etwa: "Passwort muss mindestens 8 Zeichen lang sein."
- String bereinigen

    - RegexHelper::sanitizeString($string);
- Telefonnummer maskieren

    - RegexHelper::maskPhoneNumber($phoneNumber);
- IBAN maskieren

    - RegexHelper::maskIban($iban);

Unit Tests
==========

[](#unit-tests)

- Unit Tests ausführen mit:

```
./vendor/bin/phpunit tests
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

95d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a80adc8fe2dc248838b25abe06479fb3d582c07bdf93ad54c200fbc33f9c66ec?d=identicon)[LZviosys](/maintainers/LZviosys)

---

Top Contributors

[![LZviosys](https://avatars.githubusercontent.com/u/260927315?v=4)](https://github.com/LZviosys "LZviosys (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lzwanziger-regexhelper/health.svg)

```
[![Health](https://phpackages.com/badges/lzwanziger-regexhelper/health.svg)](https://phpackages.com/packages/lzwanziger-regexhelper)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
