PHPackages                             diepxuan/laravel-currency - 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. diepxuan/laravel-currency

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

diepxuan/laravel-currency
=========================

A Laravel package for formatting currency in Blade.

0.0.6(1y ago)08.1k↓86.7%1MITPHP

Since Dec 24Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/diepxuan/laravel-currency)[ Packagist](https://packagist.org/packages/diepxuan/laravel-currency)[ RSS](/packages/diepxuan-laravel-currency/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (4)Used By (1)

Laravel Currency
================

[](#laravel-currency)

Package định dạng tiền tệ cho Blade.

Mô tả
-----

[](#mô-tả)

Một Laravel package để định dạng tiền tệ trong Blade (lấy từ composer.json).

Chức năng chính
---------------

[](#chức-năng-chính)

- Cung cấp class Formatter để định dạng số tiền theo currency và locale.
- Đăng ký Blade directive `@currency` để sử dụng trực tiếp trong view.
- Hỗ trợ các currency như VND, USD, ...
- Sử dụng Symfony Intl để định dạng chuẩn.

Cài đặt / Sử dụng
-----------------

[](#cài-đặt--sử-dụng)

```
composer require diepxuan/laravel-currency
```

Package tự động đăng ký ServiceProvider.

Trong Blade:

```
{{-- Định dạng mặc định VND --}}
@currency(1000000)

{{-- Hoặc sử dụng trực tiếp Formatter --}}
{{\Diepxuan\Currency\Formatter::format(1000000, 'USD')}}
```

Cấu trúc thư mục
----------------

[](#cấu-trúc-thư-mục)

```
laravel-currency/
├── src/
│   ├── Formatter.php
│   └── Providers/
│       └── CurrencyServiceProvider.php
└── composer.json

```

Liên kết đến các package liên quan
----------------------------------

[](#liên-kết-đến-các-package-liên-quan)

- symfony/intl (dependency)

Ghi chú
-------

[](#ghi-chú)

Package nhỏ gọn, chuyên biệt cho việc định dạng tiền tệ, hữu ích trong các ứng dụng thương mại điện tử.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance63

Regular maintenance activity

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity31

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.

###  Release Activity

Cadence

Every ~88 days

Total

3

Last Release

380d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90fcb59bfa8097c0e0dacd05f43901adb774dc4adb6172b2b743635f8f3d1d2e?d=identicon)[caothu159](/maintainers/caothu159)

---

Top Contributors

[![caothu159](https://avatars.githubusercontent.com/u/4988663?v=4)](https://github.com/caothu159 "caothu159 (8 commits)")

### Embed Badge

![Health badge](/badges/diepxuan-laravel-currency/health.svg)

```
[![Health](https://phpackages.com/badges/diepxuan-laravel-currency/health.svg)](https://phpackages.com/packages/diepxuan-laravel-currency)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[twig/intl-extra

A Twig extension for Intl

36569.4M352](/packages/twig-intl-extra)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k13.0M218](/packages/simplesamlphp-simplesamlphp)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)

PHPackages © 2026

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