PHPackages                             francescobruno-cmv/decimal-input - 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. francescobruno-cmv/decimal-input

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

francescobruno-cmv/decimal-input
================================

A Blade component for decimal number input with Alpine.js, supporting Laravel classic forms (name) and Livewire (wire:model / wire:model.live).

0.0.1(1mo ago)00MITPHPPHP ^8.1

Since Apr 20Pushed 1mo agoCompare

[ Source](https://github.com/FrancescoBruno-cmv/decimal-input)[ Packagist](https://packagist.org/packages/francescobruno-cmv/decimal-input)[ RSS](/packages/francescobruno-cmv-decimal-input/feed)WikiDiscussions main Synced 1w ago

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

Decimal Input
=============

[](#decimal-input)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d910f8b21ac1121e4ece617e4d7685a160b35f92654e6b0daa467484fe9b44db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6672616e636573636f6272756e6f2d636d762f646563696d616c2d696e7075742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/francescobruno-cmv/decimal-input)[![Total Downloads](https://camo.githubusercontent.com/c75bdad7dda653f4dc5184fdb50b0526cb3a668a5f5fb2e0ca74ebf06b293b07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6672616e636573636f6272756e6f2d636d762f646563696d616c2d696e7075742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/francescobruno-cmv/decimal-input)[![License](https://camo.githubusercontent.com/f55ec66a68af8e5e4fd8665f2fca5cc50ef1c7e1b1eaad2d187627661b708370/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6672616e636573636f6272756e6f2d636d762f646563696d616c2d696e7075742e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Un componente Blade riutilizzabile per input numerici decimali con **Alpine.js** per il filtraggio da tastiera e da incolla.
Compatibile con i form Laravel classici (`name`), **Livewire** (`wire:model`) e il binding reattivo **Livewire live** (`wire:model.live`).
Lo stile è configurabile: **Tailwind CSS** (default), **Bootstrap**, o senza stile.

---

✨ Features
----------

[](#-features)

- ✅ Componente Blade pronto all'uso, zero configurazione obbligatoria
- 🎯 Compatibile con Laravel 10, 11 e 12
- ⚡ Integrazione nativa con **Livewire 3** (`wire:model` e `wire:model.live`)
- 🎨 Tre stili inclusi: **Tailwind CSS**, **Bootstrap**, o **unstyled**
- 🔢 Separatori decimali e delle migliaia configurabili (formato IT/EU e US/UK)
- ⌨️ Filtraggio input da tastiera e da incolla tramite **Alpine.js**
- 🔧 Config pubblicabile e viste personalizzabili

---

📦 Installazione
---------------

[](#-installazione)

Installa il pacchetto tramite Composer:

```
composer require francescobruno-cmv/laravel-decimal-input
```

Il service provider viene registrato automaticamente. Nessuna configurazione manuale necessaria.

### Pubblica la configurazione (opzionale)

[](#pubblica-la-configurazione-opzionale)

```
php artisan vendor:publish --tag=decimal-input-config
```

### Pubblica le viste per personalizzarle (opzionale)

[](#pubblica-le-viste-per-personalizzarle-opzionale)

```
php artisan vendor:publish --tag=decimal-input-views
```

⚙️ Requisiti
------------

[](#️-requisiti)

- PHP &gt;= 8.1
- Laravel 10 / 11 / 12
- Alpine.js caricato nel layout (CDN o via npm)

---

⚙️ Configurazione
-----------------

[](#️-configurazione)

`config/decimal-input.php` (dopo la pubblicazione):

```
return [
    'style'               => 'tailwind',   // 'tailwind' | 'bootstrap' | 'none'
    'decimals'            => 2,
    'decimal_separator'   => ',',          // IT/EU: ','  —  US/UK: '.'
    'thousands_separator' => '.',          // IT/EU: '.'  —  US/UK: ','
];
```

---

🚀 Utilizzo
----------

[](#-utilizzo)

### Form Laravel classico (`name` + `value`)

[](#form-laravel-classico-name--value)

```

```

### Livewire — lazy binding (default)

[](#livewire--lazy-binding-default)

```

```

### Livewire — live / reactive binding

[](#livewire--live--reactive-binding)

```

```

---

📋 Props disponibili
-------------------

[](#-props-disponibili)

PropTipoDefaultDescrizione`name``string|null``null`Attributo HTML `name` — per form classici`model``string|null``null`Nome della proprietà Livewire per `wire:model``live``bool``false`Usa `wire:model.live` al posto di `wire:model``value``mixed``null`Valore iniziale (solo in modalità `name`)`decimals``int`config (2)Numero di cifre decimali`decimalSep``string`config (`,`)Separatore decimale`thousandsSep``string`config (`.`)Separatore delle migliaia`style``string|null`config (`tailwind`)`'tailwind'` | `'bootstrap'` | `'none'``class``string|null``null`Classi CSS aggiuntive`id``string|null``null`Attributo HTML `id``required``bool``false`Aggiunge l'attributo `required``disabled``bool``false`Aggiunge l'attributo `disabled``placeholder``string|null``null`Testo placeholder---

📝 Esempi
--------

[](#-esempi)

### Stile Bootstrap

[](#stile-bootstrap)

```

```

### Senza stile (classi personalizzate)

[](#senza-stile-classi-personalizzate)

```

```

### Separatori in formato US per componente

[](#separatori-in-formato-us-per-componente)

```

```

### Livewire con attributi aggiuntivi

[](#livewire-con-attributi-aggiuntivi)

```

```

---

🤝 Contributi
------------

[](#-contributi)

Le contribuzioni sono benvenute!

1. Fai fork del progetto
2. Crea un branch (`feature/nome-feature`)
3. Commit delle modifiche
4. Push sul branch
5. Apri una Pull Request

---

📄 Licenza
---------

[](#-licenza)

Questo pacchetto è distribuito sotto licenza MIT.
Vedi il file `LICENSE.md` per maggiori dettagli.

---

👤 Autore
--------

[](#-autore)

**Francesco Bruno**

---

⭐ Supporto
----------

[](#-supporto)

Se il pacchetto ti è utile, lascia una ⭐ su GitHub!

###  Health Score

33

—

LowBetter than 73% of packages

Maintenance91

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

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

Unknown

Total

1

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd0b6534fed5c0f0f2b964250328bb7072a726a1709ac141379377f7b07e66ff?d=identicon)[FrancescoBruno-cmv](/maintainers/FrancescoBruno-cmv)

---

Top Contributors

[![FrancescoBruno-cmv](https://avatars.githubusercontent.com/u/210493613?v=4)](https://github.com/FrancescoBruno-cmv "FrancescoBruno-cmv (6 commits)")

---

Tags

laravelbladedecimallivewirecomponentinputalpinejs

### Embed Badge

![Health badge](/badges/francescobruno-cmv-decimal-input/health.svg)

```
[![Health](https://phpackages.com/badges/francescobruno-cmv-decimal-input/health.svg)](https://phpackages.com/packages/francescobruno-cmv-decimal-input)
```

###  Alternatives

[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k531.0k21](/packages/robsontenorio-mary)[victorybiz/laravel-simple-select

Laravel Simple Select inputs component for Blade and Livewire.

13722.0k](/packages/victorybiz-laravel-simple-select)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5222.7k](/packages/hasinhayder-tyro-dashboard)[developermithu/tallcraftui

TallCraftUI is a Laravel blade UI components library built on TALL stack

1652.9k](/packages/developermithu-tallcraftui)[technikermathe/blade-lucide-icons

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

18379.7k9](/packages/technikermathe-blade-lucide-icons)[mati365/ckeditor5-livewire

CKEditor 5 integration for Laravel Livewire

436.8k](/packages/mati365-ckeditor5-livewire)

PHPackages © 2026

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