Giter Club home page Giter Club logo

Comments (9)

pimjansen avatar pimjansen commented on September 25, 2024 2

Well its a decent addition imo for the future. I would not call it version though since there are so many versioning types but we could create such extension indeed.

Like:
$faker->semver(); // 1.0.0
$faker->semver(); // 2.1.7-beta1
$faker->version(); // random options like semver or even other formats

from faker.

IonBazan avatar IonBazan commented on September 25, 2024 1

While this could be a nice addition, you can use numerify('#.##.#') for now.

from faker.

aedart avatar aedart commented on September 25, 2024

@IonBazan Thank for the reply - I'm in no rush for this feature. I only brought it up, due to a recent testing task I had to complete, in which a version string was required.

@pimjansen I agree that "version" alone might be a bit too shallow. A version generator could... or rather should, allow for some level of customization. Which options should be allowed is beyond me, at this very moment. In any case, I hope that this can be adapted into a future version of Faker.

from faker.

stale avatar stale commented on September 25, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 1 week if no further activity occurs. Thank you for your contributions.

from faker.

shalvah avatar shalvah commented on September 25, 2024

Whoa, slow down, bot. 14 days is a bit aggressive for a "stale" tag for a (non-urgent) feature request.😕

from faker.

pimjansen avatar pimjansen commented on September 25, 2024

Whoa, slow down, bot. 14 days is a bit aggressive for a "stale" tag for a (non-urgent) feature request.

Thats why we have a pinned label :)

from faker.

chris-doehring avatar chris-doehring commented on September 25, 2024

I really like the idea and was actually wondering why Faker doesn't already have something like that^^ I tried a semver implementation in #350 :)

from faker.

chris-doehring avatar chris-doehring commented on September 25, 2024

Another versioning scheme I've found is CalVer, the calendar based versioning, but that's pretty much it. Many applications or companies define their own versioning scheme, but semver and calver seem to be the biggest ones available.

After implementing that, we can add the version method which will randomly generate one of those two schemes, like @pimjansen suggested.

from faker.

pimjansen avatar pimjansen commented on September 25, 2024

Im closing this ticket. If we need more support for other versions and would do it from there though.

Thanks for the effort!

from faker.

Related Issues (20)

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.