PHPackages                             jone22e/phpsupertypes - 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. jone22e/phpsupertypes

ActiveLibrary

jone22e/phpsupertypes
=====================

Classes de auxilio para tipos padrão

012PHP

Since Mar 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jone22e/phpsupertypes)[ Packagist](https://packagist.org/packages/jone22e/phpsupertypes)[ RSS](/packages/jone22e-phpsupertypes/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (1)Used By (0)

phpsupertypes
=============

[](#phpsupertypes)

Classes para auxiliar no desenvolvimento de aplicações em PHP

Instalação:

```
"jone22e/phpsupertypes": "dev-main"

```

Strings

```
$string = new NString("CPF é 12345678911");
echo $string->numbersOnly(); //123456789
if ($string->startsWith("C")) {

}
```

Doubles

```
$val = new NDouble(500);
$val->toReais(2); //500,00
$val->fromReais("1250,00");
$val->toDouble();//1250.00
```

Dates

```
$date = new NDate();
$date->fromString("25/03/2021 18:00");
$date->toDate();//2021-03-25 18:00
$date->toDateOnly();//2021-03-25
$date->addmonths(1); //2021-04-25

$date = new NDate("2021-03-25");
$date->toString(); //25/03/2021
$date->addDays(1); //26/03/2021
if ($date->isHigherToday()) {

}
$date2 = new NDate();
$date2->toString(); //hoje dd/mm/aaaa
$date3 = new NDate("2021-12-31");
echo $date3->daysRemaining();// = 281 (hoje é 25/03/2021)
```

Coluna tipo Bytea no Postgresql para armazenamento de arquivos.

```
//gravando no banco
$arquivo = new NBytea();
$arquivo->fromUpload($_FILES['arquivo']); //variável do formulário
$sql = "insert into arquivo (colunabytea, nome, extensao) values ('{$arquivo->getBytea()}', '{$arquivo->getName()}', '{$arquivo->getType()}') ";

//lendo do banco
//$col = pg_fetch_array
$arquivo = new NBytea($col['colunabytea'], $col['nome'], $col['extensao']);

//download direto
$arquivo->download();

//gravar em diretório
$arquivo->savetoFile("/home/user/file.ext");
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 56% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/17afeb346443d9288c13cf48e76a87f1099e477891535a3f177989e7104ad526?d=identicon)[jone22e](/maintainers/jone22e)

---

Top Contributors

[![tibrasiltec](https://avatars.githubusercontent.com/u/79057525?v=4)](https://github.com/tibrasiltec "tibrasiltec (14 commits)")[![jone22e](https://avatars.githubusercontent.com/u/73531252?v=4)](https://github.com/jone22e "jone22e (11 commits)")

### Embed Badge

![Health badge](/badges/jone22e-phpsupertypes/health.svg)

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

PHPackages © 2026

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