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

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

quattror/helpers
================

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

0.0.21(4mo ago)0939MITPHP

Since Jun 9Pushed 4mo agoCompare

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

READMEChangelogDependencies (2)Versions (22)Used By (0)

helpers
=======

[](#helpers)

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

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

[](#instalação)

```
$ composer require quattror/helpers
```

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

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

```
use Quattror\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 Quattror\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/Quattror/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

44

—

FairBetter than 91% of packages

Maintenance74

Regular maintenance activity

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76.3% 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 ~157 days

Recently: every ~691 days

Total

21

Last Release

146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef2a6daad6e8e33862cf1f14f9160f91470eb1d436ab242c5f35bf44e8c741bb?d=identicon)[quattror](/maintainers/quattror)

---

Top Contributors

[![motamonteiro](https://avatars.githubusercontent.com/u/5316507?v=4)](https://github.com/motamonteiro "motamonteiro (58 commits)")[![maraujo-quattror](https://avatars.githubusercontent.com/u/73889939?v=4)](https://github.com/maraujo-quattror "maraujo-quattror (8 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)")[![matheusmauricio](https://avatars.githubusercontent.com/u/17691457?v=4)](https://github.com/matheusmauricio "matheusmauricio (1 commits)")[![flpcoliveira](https://avatars.githubusercontent.com/u/5603310?v=4)](https://github.com/flpcoliveira "flpcoliveira (1 commits)")[![ccastro-quattror](https://avatars.githubusercontent.com/u/74911710?v=4)](https://github.com/ccastro-quattror "ccastro-quattror (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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