PHPackages                             bronanza/brutils - 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. bronanza/brutils

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

bronanza/brutils
================

Common php utilities

06PHP

Since Oct 24Pushed 8y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Brutils
=======

[](#brutils)

PHP common utilities with laravel support.

Installation
------------

[](#installation)

Add the following to `composer.json`. Then run `composer update`

```
"bronanza/brutils": "dev-master"

```

### Optional

[](#optional)

For laravel support, open `config/app.php` and register service provider to the `providers` array

```
Bronanza\Brutils\ServiceProvider::class

```

In the same config file `config/app.php` add the following to the aliases array

```
NumberFormatter => Bronanza\Brutils\Number\FormatterFacade::class,
CurrencyFormatter => Bronanza\Brutils\Currency\FormatterFacade::class,

```

Run the command below to publish the package config file `config/brutils.php`

```
php artisan vendor:publish

```

Quick Usage
-----------

[](#quick-usage)

### Formatter

[](#formatter)

```
$formatter = new \Bronanza\Brutils\Number\Formatter(0, ',', '.');
$formatter->format(10000) === '10.000';

$currencyFormatter = new \Bronanza\Brutils\Currency\Formatter($formatter, '$');
$formatter->format(10000) === '$10.000';

// Or if you've registered the facades (config based on config/brutils.php)
NumberFormatter::format(10000) === '10.000';
CurrencyFormatter::format(10000) === '$10.000';

```

License
-------

[](#license)

MIT

[![Yeay](https://camo.githubusercontent.com/c75c75a8804e25931d4405e963a31591787928c54f5b9d4949a81fb04a71cf1b/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f7245624a6a536a6f533871594d2f67697068792e676966)](https://camo.githubusercontent.com/c75c75a8804e25931d4405e963a31591787928c54f5b9d4949a81fb04a71cf1b/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f7245624a6a536a6f533871594d2f67697068792e676966)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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/b1f7a50306e68b62b12abb80a7caae5bf4050403bf8643f88491677cc36b86d8?d=identicon)[sendyHalim](/maintainers/sendyHalim)

![](https://www.gravatar.com/avatar/36dd26adba28b8164dcdbf21a4cc3a58e9e809a0e75ecb5c240a7a2dbea81965?d=identicon)[erickkur](/maintainers/erickkur)

---

Top Contributors

[![sendyhalim](https://avatars.githubusercontent.com/u/3948217?v=4)](https://github.com/sendyhalim "sendyhalim (14 commits)")

### Embed Badge

![Health badge](/badges/bronanza-brutils/health.svg)

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

###  Alternatives

[geo-io/interface

Geo I/O base interfaces.

626.1M7](/packages/geo-io-interface)[psi/news4ward

A blogging / news system for Contao

131.4k13](/packages/psi-news4ward)

PHPackages © 2026

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