PHPackages                             lucasdev/helpers-php - 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. lucasdev/helpers-php

ActiveLibrary

lucasdev/helpers-php
====================

Helpers para ajudar a desenrolar na programação quanto você tem pouco tempo.

12462PHP

Since Jul 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/LucasSantosDev/helpers-php)[ Packagist](https://packagist.org/packages/lucasdev/helpers-php)[ RSS](/packages/lucasdev-helpers-php/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

### Helpers para PHP

[](#helpers-para-php)

Execute o comando

```
composer require lucasdev/helpers-php

```

### Usando no PHP

[](#usando-no-php)

```
use LucasDev\HelpersPhp\MyHelpers;

class TesteController extends Controller
{
    public function index()
	{
        $date = date('Y-m-d');

        $date = MyHelpers::EnDateToBrDate($date);

        dd($date);
    }
}

```

### Modo de Uso

[](#modo-de-uso)

Formatação de data EN para BR.

```
$yourDateInEn = date('Y-m-d');

MyHelpers::EnDateToBrDate($yourDateInEn);

```

```

$yourDateInBr = date('d/m/Y');

MyHelpers::BrDateToEnDate($yourDateInBr);

```

Mascarar string

```
MyHelpers::maskAnyThing('44532165498', '###.###.###-##');

```

Validar CPF (o mesmo para CNPJ, só muda a função)

```
if (MyHelpers::validaCPF($cpfComMascaraOuSemMascara)) {
	echo 'válido';
} else {
	echo 'inválido';
}

```

Verificar se uma data é final de semana

```
if (MyHelpers::isWeekend(date('d/m/Y'))) {
	echo 'final de semana';
} else {
	echo 'semana';
}

```

Upload de imagem (Funciona para o laravel &gt;= 5.6)

```
$dirBase = public_path('images');

MyHelpers::imageUpload($dirBase, $request->file('foto'));

```

Forçar download do arquivo

```
$conteudo = 'Coluna';

MyHelpers::forceDownload('xls', 'arquivo.xls', $conteudo);

```

[![Logo Think So!](https://camo.githubusercontent.com/b7386878aaaf4857655624cb527ce4d364022609cf88eb877f628b1ec7fc2e81/68747470733a2f2f7468696e6b736f2e636f6d2e62722f6170706c69636174696f6e2f76696577732f696d616765732f6c6f676f5f70616773656775726f2e706e67)](https://camo.githubusercontent.com/b7386878aaaf4857655624cb527ce4d364022609cf88eb877f628b1ec7fc2e81/68747470733a2f2f7468696e6b736f2e636f6d2e62722f6170706c69636174696f6e2f76696577732f696d616765732f6c6f676f5f70616773656775726f2e706e67)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% 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/3849c0349899640410f8b63afe429b5dec82353d6fa40dd3240d4f06e7fc4e6a?d=identicon)[LucasSantosDev](/maintainers/LucasSantosDev)

---

Top Contributors

[![LucasSantosDev](https://avatars.githubusercontent.com/u/5623855?v=4)](https://github.com/LucasSantosDev "LucasSantosDev (7 commits)")[![everaldolima](https://avatars.githubusercontent.com/u/42183642?v=4)](https://github.com/everaldolima "everaldolima (1 commits)")

### Embed Badge

![Health badge](/badges/lucasdev-helpers-php/health.svg)

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

PHPackages © 2026

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