Skip to content

xamani/nova-persian-number

Repository files navigation

Laravel Nova Number field with display of Persian letters

This package allows the user to set up a field in Nova that forms and converts numbers to Farsi letters.

Installation

You can install the package via composer:

composer require xamani/nova-persian-number

for nova 3 or above

composer require xamani/nova-persian-number:^1.0

Usage

use Xamani\NovaPersianNumber;

PersianNumber::make('Price')
    ->format('0,0')   // Defaults to "0,0"
    ->moneyUnit('تومان') // You can also use the null value 

License

The MIT License (MIT).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published