PHPackages                             gabrielapg/validador-cpf-laravel - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. gabrielapg/validador-cpf-laravel

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

gabrielapg/validador-cpf-laravel
================================

Validation CPF support in your Laravel application version Laravel 5.4

019PHP

Since Feb 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/GabrielApG/laravel-validation-cpf)[ Packagist](https://packagist.org/packages/gabrielapg/validador-cpf-laravel)[ RSS](/packages/gabrielapg-validador-cpf-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

README
------

[](#readme)

### Validation CPF for Laravel 5.4

[](#validation-cpf-for-laravel-54)

Composer required
-----------------

[](#composer-required)

```
composer require "gabrielapg/validador-cpf-laravel @dev"

```

### Register your provider

[](#register-your-provider)

Insert in file config/app.php

```
ValidationCPF\CpfServiceProvider::class

```

Publish
-------

[](#publish)

```
php artisan vendor:publish

```

Change message error
--------------------

[](#change-message-error)

In file config/cpf.php your change message error

Example
-------

[](#example)

```
namespace App\Http\Requests;

use App\Http\Requests\Request;

class ExampleRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'cpf' => 'cpf'
        ];
    }
}
```

#### Or if you prefer you can do:

[](#or-if-you-prefer-you-can-do)

```
$this->validate($request, [
    'cpf' => 'cpf',
]);

```

### References fork

[](#references-fork)

###### This package is an original fork of:

[](#this-package-is-an-original-fork-of)

[jailtonsc/validador-cpf-laravel](https://github.com/jailtonsc/validador-cpf-laravel)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/cce51848f766744f96fc76381dada168718f3e0a5559584afcbeaab67c73d609?d=identicon)[GabrielApG](/maintainers/GabrielApG)

---

Top Contributors

[![GabrielApG](https://avatars.githubusercontent.com/u/7422945?v=4)](https://github.com/GabrielApG "GabrielApG (6 commits)")

### Embed Badge

![Health badge](/badges/gabrielapg-validador-cpf-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/gabrielapg-validador-cpf-laravel/health.svg)](https://phpackages.com/packages/gabrielapg-validador-cpf-laravel)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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