simplesquid / nova-advanced-number-field
A Laravel Nova field which adds additional functionality to the default Number field.
Installs: 145 359
Dependents: 1
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 14
Open Issues: 0
Requires
- php: ^8.1
- illuminate/support: ^10.0 || ^11.0
- laravel/nova: ^4.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.44
- laravel/pint: ^1.2
- nunomaduro/collision: ^7.0 || ^8.0
- orchestra/testbench: ^8.0 || ^9.0
- phpunit/phpunit: ^10.1
- symfony/var-dumper: ^6.0 || ^7.0
README
A Laravel Nova field which adds additional functionality to the default Number field by using PHP's number_format()
function.
Installation
You can install this package in a Laravel app that uses Nova via composer:
composer require simplesquid/nova-advanced-number-field
Usage
The AdvancedNumber
field provides an additional 5 methods to the default Number
field, namely:
->prefix('$')
: Sets the prefix to be used when displaying the number.->thousandsSeparator(' ')
: Set the thousands separator symbol to be used when displaying the number.->decimalPoint('.')
: Sets the decimal point symbol to be used when displaying the number.->decimals(3)
: Sets the number of decimal points to be used as well as the step value.->suffix('%')
: Sets the suffix to be used when displaying the number.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
Package skeleton based on spatie/skeleton-php.
About us
SimpleSquid is a small web development and design company based in Valkenburg, Netherlands.
License
The MIT License (MIT). Please see License File for more information.