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

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

motamonteiro/helpers
====================

Funções comuns que podem ser usadas em qualquer projeto PHP 7.

0.0.19(5y ago)11.7k71MITPHP

Since Jun 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/motamonteiro/helpers)[ Packagist](https://packagist.org/packages/motamonteiro/helpers)[ RSS](/packages/motamonteiro-helpers/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (20)Used By (1)

[![Build Status](https://camo.githubusercontent.com/ce0095e9fff8b6724562c3de6c1299b6019c74f017806633e51facba029742fe/68747470733a2f2f7472617669732d63692e6f72672f6d6f74616d6f6e746569726f2f68656c706572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/motamonteiro/helpers)[![Coverage Status](https://camo.githubusercontent.com/51f3aa6d18f9e6596349c7d2c27d69f90a32bc49af5aa08553caa03ae18e9af6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6f74616d6f6e746569726f2f68656c706572732f62616467652e737667)](https://coveralls.io/github/motamonteiro/helpers)[![Total Downloads](https://camo.githubusercontent.com/64d1ef015d32549189f7108149b35467f24b1a0bd2844ef240aba20578831551/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74616d6f6e746569726f2f68656c706572732f646f776e6c6f616473)](https://packagist.org/packages/motamonteiro/helpers)[![Latest Stable Version](https://camo.githubusercontent.com/1e4c321ebbd94c873e3dffb2f43b157021b146ff4fddb5cee2bf212c2c24acb9/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74616d6f6e746569726f2f68656c706572732f762f737461626c65)](https://packagist.org/packages/motamonteiro/helpers)[![License](https://camo.githubusercontent.com/12ec241bd2b1556a40251a5b423f8e929cb5ce344ba1dcce87f78b4c722076bd/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74616d6f6e746569726f2f68656c706572732f6c6963656e7365)](https://packagist.org/packages/motamonteiro/helpers)

helpers
=======

[](#helpers)

O pacote helpers disponibiliza funcionalidades comuns que podem ser usadas em qualquer projeto PHP 7.

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

[](#instalação)

```
$ composer require motamonteiro/helpers
```

Utilização com `traits`
-----------------------

[](#utilização-com--traits)

```
use MotaMonteiro\Helpers\Traits\UtilHelper;

class MyClass
{
    use UtilHelper;

    public function myFunction()
    {
        $cpf = '43354377224';
        if ($this->validarCpf($cpf)) {
            ...
        }
    }

    public function myOtherFunction()
    {
        $data = '21/10/1982';
        if ($this->validarDataFormatoBr($data)) {
            ...
        }
    }
}
```

Utilização com `classes`
------------------------

[](#utilização-com-classes)

```
use MotaMonteiro\Helpers\UtilHelper;

class MyClass
{
    public function myFunction()
    {
        $util = new UtilHelper();

        $cpf = '43354377224';
        if ($util->validarCpf($cpf))
        {
            ...
        }
    }
}
```

Teste
-----

[](#teste)

Para efetuar os testes basta executar o comando abaixo no terminal:

```
$ ./vendor/bin/phpunit
```

Exemplo de saída:

```
PHPUnit 5.7.21 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.1.6 with Xdebug 2.5.4
Configuration: /Users/alexandre/Documents/github/motamonteiro/helpers/phpunit.xml

..........................                                        26 / 26 (100%)

Time: 411 ms, Memory: 6.00MB

OK (26 tests, 26 assertions)

Generating code coverage report in Clover XML format ... done

```

Package
-------

[](#package)

Licença
-------

[](#licença)

MIT License

Copyright (c) 2017

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 86.6% 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 ~69 days

Recently: every ~278 days

Total

19

Last Release

2057d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/539862e1b95a8084a5a8a6047522ede30721979d9146efed03cc27455a565409?d=identicon)[motamonteiro](/maintainers/motamonteiro)

---

Top Contributors

[![motamonteiro](https://avatars.githubusercontent.com/u/5316507?v=4)](https://github.com/motamonteiro "motamonteiro (58 commits)")[![pbfoliveira](https://avatars.githubusercontent.com/u/15018719?v=4)](https://github.com/pbfoliveira "pbfoliveira (5 commits)")[![zepaduajr](https://avatars.githubusercontent.com/u/13107160?v=4)](https://github.com/zepaduajr "zepaduajr (2 commits)")[![flpcoliveira](https://avatars.githubusercontent.com/u/5603310?v=4)](https://github.com/flpcoliveira "flpcoliveira (1 commits)")[![matheusmauricio](https://avatars.githubusercontent.com/u/17691457?v=4)](https://github.com/matheusmauricio "matheusmauricio (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[plesk/pm-api-stubs

Plesk Extensions API PHP files stubs for IDE.

2446.4k1](/packages/plesk-pm-api-stubs)

PHPackages © 2026

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