PHPackages                             wprk/laravel-blade-readable-numbers - 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. [Templating &amp; Views](/categories/templating)
4. /
5. wprk/laravel-blade-readable-numbers

ActiveLibrary[Templating &amp; Views](/categories/templating)

wprk/laravel-blade-readable-numbers
===================================

A blade directive for human readable numbers, k-style.

v1.3.0(5y ago)114MITPHPPHP ^5|^7|^8

Since Dec 5Pushed 5y agoCompare

[ Source](https://github.com/wprk/laravel-blade-readable-numbers)[ Packagist](https://packagist.org/packages/wprk/laravel-blade-readable-numbers)[ Docs](https://github.com/wprk/laravel-blade-readable-numbers)[ RSS](/packages/wprk-laravel-blade-readable-numbers/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (5)Versions (5)Used By (0)

Blade directive for short human readable numbers (i.e. 3K+, 4M+)
================================================================

[](#blade-directive-for-short-human-readable-numbers-ie-3k-4m)

\--&gt; Adds the `@longInt` directive to Laravel's Blade templating system. This way you can shorten numbers into strings like `123K+`.

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

[](#installation)

You can install the package via composer:

```
composer require heliumargon/laravel-blade-readable-numbers
```

Usage
-----

[](#usage)

```
@longInt(123456) // outputs 123K+
@longInt(123456789) // outputs 123M+
@longInt(123456789012) // outputs 123B+
@longInt(123456789012345) // outputs 123T+
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sander van Hooft](https://github.com/SanderVanHooft) - [www.sandervanhooft.com](https://www.sandervanhooft.com)
- [Will Parker](https://github.com/wprk) - [www.wipar.co.uk](https://www.wipar.co.uk)
- [Appstract](https://github.com/appstract/laravel-blade-directives) for blade directive testing methods
- [Radley Sustaire (RadGH)](https://github.com/RadGH) and [Hassan Amir Khan (hassanamirkhan)](https://github.com/hassanamirkhan) for [the short-number-format gist](https://gist.github.com/RadGH/84edff0cc81e6326029c).
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~247 days

Total

4

Last Release

1972d ago

PHP version history (2 changes)v1.0.0PHP ^7.1

v1.3.0PHP ^5|^7|^8

### Community

Maintainers

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

---

Top Contributors

[![sandervanhooft](https://avatars.githubusercontent.com/u/7265703?v=4)](https://github.com/sandervanhooft "sandervanhooft (12 commits)")[![alvin8t](https://avatars.githubusercontent.com/u/6811437?v=4)](https://github.com/alvin8t "alvin8t (4 commits)")[![wprk](https://avatars.githubusercontent.com/u/974333?v=4)](https://github.com/wprk "wprk (2 commits)")

---

Tags

laravelbladehuman-readablelaravel-blade-readable-numbers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wprk-laravel-blade-readable-numbers/health.svg)

```
[![Health](https://phpackages.com/badges/wprk-laravel-blade-readable-numbers/health.svg)](https://phpackages.com/packages/wprk-laravel-blade-readable-numbers)
```

###  Alternatives

[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18299.2k7](/packages/technikermathe-blade-lucide-icons)[saade/blade-iconsax

A package to easily make use of Iconsax in your Laravel Blade views.

21138.5k](/packages/saade-blade-iconsax)[mckenziearts/blade-untitledui-icons

A package to easily make use of UntitledUI icons in your Laravel Blade views.

16104.9k5](/packages/mckenziearts-blade-untitledui-icons)

PHPackages © 2026

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