Comments (6)
Basically a way to convert number like this:
1 = firsth
2= second
3 = third
I was able to do this directly with php but it will be nice to have it wrapped on the package.
$formatter = new NumberFormatter('es_MX', NumberFormatter::SPELLOUT);
$formatter->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal-masculine");
$formatter->format(2); // second, segundo in spanish
Something like this:
SpellNumber::value(2)->toOrdinal();
SpellNumber::value(2, "%spellout-ordinal-masculine")->toOrdinal();
https://www.php.net/manual/en/class.numberformatter.php
from spellnumber.
@socieboy Sounds like a really good feature, I'm adding it in the next release. 🚀🚀🚀
from spellnumber.
Se ve bien! excelente, gracias!
from spellnumber.
@socieboy Hello, could you provide me with some examples to understand more precisely what you are referring to?
from spellnumber.
@socieboy
La versión esta lista para ser lanzada, crees que puedas revisar si podemos mejorarle algo?
Para que puedas instalar la versión de desarrollo, ejecuta el siguiente comando.
The version is ready to be released, do you think you can check if we can improve something?
So that you can install the development version, run the following command.
composer require rmunate/spell-number 1.0.x-dev
El manual ya se encuentra actualizado en:
The manual is already updated at:
https://rmunate.github.io/SpellNumber/
La estaré lanzando sobre las 17 Horas Bogotá, Colombia - 16 Horas CDMX, México
from spellnumber.
Se ve bien! excelente, gracias!
En ese caso la lanzare de inmediato.
from spellnumber.
Related Issues (14)
- Add Lang: Alemania: alemán
- Review German HOT 4
- Method suggestions HOT 2
- If I pass a number with fractiob 0 it generate zero cent for currency HOT 2
- Cannot cache configs due to callback present in config file HOT 2
- Cambiar formato de texto para los centavos. HOT 7
- Convert float and double to letters with french locale
- Locale is ignored HOT 1
- Support for Laravel 11 HOT 2
- Natural language support
- Not work in Laravel 11
- Currency transformer for id language is not implemented
- Add Hindi to the List of supported languages HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spellnumber.