PHPackages                             kematjaya/price-bundle - 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. kematjaya/price-bundle

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

kematjaya/price-bundle
======================

8.0(1mo ago)11.3k1MITPHPPHP &gt;=8.1CI failing

Since Apr 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/kematjaya0/price-bundle)[ Packagist](https://packagist.org/packages/kematjaya/price-bundle)[ RSS](/packages/kematjaya-price-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (42)Versions (44)Used By (1)

price-bundle
============

[](#price-bundle)

Price/currency form type, number formatting, Indonesian terbilang &amp; date formatting.

Supports Symfony 7+ and PHP 8.1+.

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

[](#installation)

```
composer require kematjaya/price-bundle
```

Bundle Registration
-------------------

[](#bundle-registration)

```
// config/bundles.php
Kematjaya\PriceBundle\PriceBundle::class => ['all' => true]
```

Configuration (optional)
------------------------

[](#configuration-optional)

```
# config/packages/price.yaml
price:
  currency:
    code:           IDR
    cent_limit:     0
    cent_point:     '.'
    thousand_point: ','
    allow_negative: true
```

Twig Form Theme
---------------

[](#twig-form-theme)

```
# config/packages/twig.yaml
twig:
  form_themes:
    - '@Price/bootstrap_5_price_layout.html.twig'  # Bootstrap 5
    - '@Price/bootstrap_4_price_layout.html.twig'  # Bootstrap 4
    - '@Price/bootstrap_3_price_layout.html.twig'  # Bootstrap 3
```

Form Usage
----------

[](#form-usage)

```
use Kematjaya\PriceBundle\Type\PriceType;

$builder->add('price', PriceType::class);
```

Twig Functions
--------------

[](#twig-functions)

```
{{ price(1000) }}        {# Rp1.000 #}
{{ price(1000.22) }}     {# Rp1.000,22 #}
{{ price_symbol() }}     {# Rp #}
{{ thousand_point() }}   {# . #}
{{ cent_point() }}       {# , #}
{{ cent_limit() }}       {# 0 #}
{{ allow_negative() }}   {# true #}
{{ 15000|terbilang }}    {# lima belas ribu #}
{{ date|date_format }}   {# Senin, 25 Mei 2026 #}
{{ date|date_to_string }}{# dua puluh lima Mei dua ribu dua puluh enam #}
```

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance92

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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 ~41 days

Recently: every ~119 days

Total

38

Last Release

41d ago

Major Versions

1.2.3 → 7.0.12024-12-18

1.2.4 → 7.0.22024-12-23

1.4 → 7.12024-12-30

1.5 → 7.2.12026-03-13

7.2.1 → 8.02026-05-25

### Community

Maintainers

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

---

Top Contributors

[![kematjaya0](https://avatars.githubusercontent.com/u/36223951?v=4)](https://github.com/kematjaya0 "kematjaya0 (13 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kematjaya-price-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kematjaya-price-bundle/health.svg)](https://phpackages.com/packages/kematjaya-price-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M387](/packages/easycorp-easyadmin-bundle)[sylius/sylius

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

8.5k5.9M737](/packages/sylius-sylius)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

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