PHPackages                             tnatanael/brformatter - 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. tnatanael/brformatter

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

tnatanael/brformatter
=====================

Traduz automaticamente valores no padrão BR pra o DB e vice-versa

036PHP

Since Sep 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tnatanael/brformatter)[ Packagist](https://packagist.org/packages/tnatanael/brformatter)[ RSS](/packages/tnatanael-brformatter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

tnatanael\\brformatter
======================

[](#tnatanaelbrformatter)

Traduz automaticamente no backend, valores no padrão BR pra o DB e vice-versa.

**Requisitos:**Laravel 5 ~ Laravel 8

**Instalação via composer:**

```
composer require tnatanael/brformatter

```

**Utilização**Utilize a seguinte sintaxe nos seus models

```
namespace App;

use TNatanael\BrFormatter\BaseModel;

class Product extends BaseModel
{
    //Date Attributes
    public $date_attributes = [
        'date'
    ];

    //Datetime Attributes
    public $datetime_attributes = [
        'datetime',
    ];

    //Money Attributes
    public $money_attributes = [
        'money',
    ];

    //Numeric Attributes
    public $numeric_attributes = [
        'numeric'
    ];

    //Boolean Attributes
    public $boolean_attributes = [
        'boolean',
    ];
}

```

Para retornar os valores exatamente como salvos no db utilize:

```
$product->getOriginal();

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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/5e3fb86e4e97571ee1ec0acb3f6568f71dc60d4fc20e1da536a9cf0016fec0bc?d=identicon)[tnatanael](/maintainers/tnatanael)

---

Top Contributors

[![tnatanael](https://avatars.githubusercontent.com/u/11818318?v=4)](https://github.com/tnatanael "tnatanael (2 commits)")

### Embed Badge

![Health badge](/badges/tnatanael-brformatter/health.svg)

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

###  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)
