PHPackages                             realejo/library - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. realejo/library

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

realejo/library
===============

Biblioteca com funções comuns.

2.5.1(7y ago)32.9k1[3 PRs](https://github.com/realejo/library/pulls)UnlicensePHPPHP &gt;=7.1

Since Nov 23Pushed 5y ago5 watchersCompare

[ Source](https://github.com/realejo/library)[ Packagist](https://packagist.org/packages/realejo/library)[ Docs](http://realejo.com.br)[ RSS](/packages/realejo-library/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (20)Used By (0)

\#Library

develop: [![Build Status](https://camo.githubusercontent.com/172038da4592a6ff7fc88e9ee583b074cd7375fe00179d9646dec70bdc7fe832/68747470733a2f2f7472617669732d63692e6f72672f7265616c656a6f2f6c6962726172792e706e673f6272616e63683d646576656c6f70)](https://travis-ci.org/realejo/library)master: [![Build Status](https://camo.githubusercontent.com/0c3c34fabd7e8bd272c55539b8c9ddc9235eeabb53f2b4076b6dd49bbc981e26/68747470733a2f2f7472617669732d63692e6f72672f7265616c656a6f2f6c6962726172792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/realejo/library)

[![Coverage Status](https://camo.githubusercontent.com/c1a20d577a594d376d7a25c155535d95658510d7c6b90151e735ad9aff1d7f75/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7265616c656a6f2f6c6962726172792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/realejo/library?branch=master)

Biblioteca com funções comuns

### CPF/CNPJ/CNH

[](#cpfcnpjcnh)

Permite a validação e formatação de CPF, CNPJ e CNH

### CEP/RG/CREA/Phone

[](#ceprgcreaphone)

Permite formatação de CEP, RG\*, CREA e Phone(fixo e celular)

### Image

[](#image)

Permite a manipilação de imagens

### Math

[](#math)

Funções matemáticas que não existem módulo stats do PHP: moda e mediana

### String

[](#string)

Manipulição de strings: remover acentos, criar slug, detectar e converter para UTF8, etc

### UF

[](#uf)

Manipulação das unidades federativas do Brasil. Não se chama estado por que DF não é estado.

\*Por enquanto a validação do RG só funciona para o orgão SSP-SP, os demais não se enquadram nessa validação, só usam a validação por quantidade de caracteres, a maioria dos estados ainda está usando 9 caracteres, mas ja tem estados usando 10.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 92.1% 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 ~136 days

Recently: every ~175 days

Total

15

Last Release

2698d ago

Major Versions

0.7.1 → 1.02014-06-04

1.2 → 2.02015-07-22

PHP version history (3 changes)0.6PHP &gt;=5.3.3

2.3PHP &gt;=5.6

2.5.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/89726fb6eae40767ab2adb701fa63040a0be4bbcf7317b35d137092becf7396b?d=identicon)[rcapile](/maintainers/rcapile)

---

Top Contributors

[![rcapile](https://avatars.githubusercontent.com/u/189857?v=4)](https://github.com/rcapile "rcapile (129 commits)")[![gorifla](https://avatars.githubusercontent.com/u/5908879?v=4)](https://github.com/gorifla "gorifla (6 commits)")[![mariojrrc](https://avatars.githubusercontent.com/u/9058951?v=4)](https://github.com/mariojrrc "mariojrrc (5 commits)")

---

Tags

cpfcnpjufcnhrealejorg

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/realejo-library/health.svg)

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

###  Alternatives

[jansenfelipe/cnpj-gratis

Com esse pacote você poderá consultar, gratuitamente, CNPJs diretamente no site da receita.

17021.0k](/packages/jansenfelipe-cnpj-gratis)[jansenfelipe/cpf-gratis

Com esse pacote você poderá consultar, gratuitamente, CPFs diretamente no site da receita.

1885.9k](/packages/jansenfelipe-cpf-gratis)[zservices/query

Pacote para consultas em serviços do governo.

141.1k](/packages/zservices-query)

PHPackages © 2026

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