Comments (9)
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.
While this could be a nice addition, you can use numerify('#.##.#')
for now.
from faker.
@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.
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.
Whoa, slow down, bot. 14 days is a bit aggressive for a "stale" tag for a (non-urgent) feature request.😕
from faker.
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.
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.
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.
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)
- Add package version support policy HOT 1
- Discuss release schedule HOT 2
- Drop support for PHP 7.4 HOT 4
- Update docs to reflect different major versions HOT 2
- Remove functionality for populating ORM models and entities HOT 1
- The output of the md5(), sha1() and sha256() generators is misleading HOT 4
- The output of Base::randomFloat() is biased for certain inputs
- The Miscellaneous::boolean() generator could take a random float instead of an integer
- Warning DEPRECATED use of static pt_BR PhoneNumber HOT 1
- Opinions on Providing a Fake for CIDR/IP Prefixes HOT 3
- Faker images links are broken HOT 6
- Unable to get any other text but Latin HOT 4
- E-commerce Plugin - Feature HOT 1
- [ru_RU/PersonProvider] Double `а` in female lastName when using the `name()` function HOT 3
- Feature Request: Adjective Animal HOT 2
- Issue when try to use the create() function in the class_exists, throws an error when the documentation says the the function should not returns error just bool value. HOT 1
- `Generator::seed` in `Generator::__destruct` may break determinism HOT 1
- date/datetime functions not consistently seedable HOT 3
- `gmail.com.au` domain causes email validation to fail
- Is it maintained ? HOT 7
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 faker.