PHPackages                             rotaz/php-regex - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. rotaz/php-regex

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

rotaz/php-regex
===============

Coleção de expressões regulares e validadores PHP para dados do cotidiano.

v1.2.0(7mo ago)0101MITPHPPHP &gt;=7.4

Since Oct 5Pushed 7mo agoCompare

[ Source](https://github.com/rotaz-dev/php-regex)[ Packagist](https://packagist.org/packages/rotaz/php-regex)[ Docs](https://github.com/rotaz-dev/php-regex)[ RSS](/packages/rotaz-php-regex/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (3)Used By (1)

php-regex
=========

[](#php-regex)

Coleção de expressões regulares e validadores PHP para tarefas do cotidiano (CPF, telefone, e-mail, data, endereço, etc).

Instalação
----------

[](#instalação)

```
composer require rotaz-dev/php-regex
```

Exemplos de Uso
---------------

[](#exemplos-de-uso)

```
use PhpRegex\Regex\Validator;

try {
    Validator::validateCpf('123.456.789-00');
    Validator::validateEmail('exemplo@email.com');
} catch (\PhpRegex\Exception\ValidationException $e) {
    echo $e->getMessage();
}
```

Contribuições
-------------

[](#contribuições)

Contribuições são bem-vindas! Sinta-se livre para abrir issues ou enviar pull requests.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance63

Regular maintenance activity

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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 ~3 days

Total

2

Last Release

222d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b247d3e62d5a0ab4093f344af4fd34ec3c024bc29d9df716f66585271f9267ee?d=identicon)[ROTAZ Dev Team](/maintainers/ROTAZ%20Dev%20Team)

---

Top Contributors

[![rotaz-dev](https://avatars.githubusercontent.com/u/234048134?v=4)](https://github.com/rotaz-dev "rotaz-dev (9 commits)")

---

Tags

emailphonedateregexvalidatorsvalidationscpf

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rotaz-php-regex/health.svg)

```
[![Health](https://phpackages.com/badges/rotaz-php-regex/health.svg)](https://phpackages.com/packages/rotaz-php-regex)
```

###  Alternatives

[egulias/email-validator

A library for validating emails against several RFCs

11.6k691.3M307](/packages/egulias-email-validator)[sendgrid/sendgrid

This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.

1.5k47.5M164](/packages/sendgrid-sendgrid)[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94944.1M110](/packages/pelago-emogrifier)[zbateson/mail-mime-parser

MIME email message parser

54149.2M79](/packages/zbateson-mail-mime-parser)[soundasleep/html2text

A PHP script to convert HTML into a plain text format

48519.5M75](/packages/soundasleep-html2text)[opcodesio/mail-parser

Parse emails without the mailparse extension

226.8M8](/packages/opcodesio-mail-parser)

PHPackages © 2026

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