Giter Site home page Giter Site logo

Comments (6)

socieboy avatar socieboy commented on August 17, 2024 1

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.

rmunate avatar rmunate commented on August 17, 2024 1

@socieboy Sounds like a really good feature, I'm adding it in the next release. 🚀🚀🚀

from spellnumber.

socieboy avatar socieboy commented on August 17, 2024 1

Se ve bien! excelente, gracias!

from spellnumber.

rmunate avatar rmunate commented on August 17, 2024

@socieboy Hello, could you provide me with some examples to understand more precisely what you are referring to?

from spellnumber.

rmunate avatar rmunate commented on August 17, 2024

@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.

rmunate avatar rmunate commented on August 17, 2024

Se ve bien! excelente, gracias!

En ese caso la lanzare de inmediato.

from spellnumber.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.