All Projects → datafaker-net → datafaker

datafaker-net / datafaker

Licence: other
Brings the popular ruby faker gem to Java and Kotlin

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to datafaker

apollobank
A full stack GraphQL banking application using React, Node & TypeScript.
Stars: ✭ 203 (+47.1%)
Mutual labels:  faker
random
Random data generator AKA faker
Stars: ✭ 14 (-89.86%)
Mutual labels:  faker
Faker.NET.Portable
C# port of the Ruby Faker gem (http://faker.rubyforge.org/)
Stars: ✭ 22 (-84.06%)
Mutual labels:  faker
bypass
↪️ Bypass for PHP creates a custom HTTP Server to return predefined responses to client requests. Useful for tests with Pest PHP or PHPUnit.
Stars: ✭ 98 (-28.99%)
Mutual labels:  faker
faker
Generate massive amounts of fake data in the browser and node.js
Stars: ✭ 6,940 (+4928.99%)
Mutual labels:  faker
faker
A set of javascript packages that generates fake data for you.
Stars: ✭ 33 (-76.09%)
Mutual labels:  faker
swagger-faker
Generate mocker services automatically through Swagger or OpenAPI.
Stars: ✭ 26 (-81.16%)
Mutual labels:  faker
faker-buzzword-job-titles
👔 A job title generator for faker based on Buzzwords.
Stars: ✭ 14 (-89.86%)
Mutual labels:  faker
test-util
👓 Provides utilities for tests.
Stars: ✭ 15 (-89.13%)
Mutual labels:  faker
fake-web-events
Creates a Simulation of Fake Web Events
Stars: ✭ 48 (-65.22%)
Mutual labels:  faker
mkjson
A commandline tool to generate static or random JSON records
Stars: ✭ 16 (-88.41%)
Mutual labels:  faker
miz
🎯 Generate fake data, Just like a person.
Stars: ✭ 24 (-82.61%)
Mutual labels:  faker
TFaker
🔮 TFaker is a data generator inspired by https://github.com/fzaninotto/Faker and many others.
Stars: ✭ 23 (-83.33%)
Mutual labels:  faker
jedi-faker
Faker extension for Star Wars junkie
Stars: ✭ 15 (-89.13%)
Mutual labels:  faker
Data-Mocking
A tool that USES a template engine to generate data
Stars: ✭ 16 (-88.41%)
Mutual labels:  faker
FakerDotNet
A .NET port of the Ruby faker gem
Stars: ✭ 15 (-89.13%)
Mutual labels:  faker
Mockaco
🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
Stars: ✭ 213 (+54.35%)
Mutual labels:  faker
Faker-PicsumPhotos
picsum.photos Provider for PHP Faker
Stars: ✭ 25 (-81.88%)
Mutual labels:  faker
blaver
A JavaScript library built on top of the Faker.JS library. It generates massive amounts of fake data in the browser and node.js.
Stars: ✭ 112 (-18.84%)
Mutual labels:  faker
fastfaker
Fast, concurrent fake data generator for any structure or type.
Stars: ✭ 21 (-84.78%)
Mutual labels:  faker

Data Faker

Maven Status License codecov

This library is a modern port of java-faker, built on Java 8, with up to date libraries and several newly added Fake Generators.

This library generates fake data, similar to other fake data generators, such as:

It's useful when you're developing a new project and need some pretty data for showcase.

Usage

In the pom.xml, add the following fragment to the dependencies section:

<dependency>
    <groupId>net.datafaker</groupId>
    <artifactId>datafaker</artifactId>
    <version>1.3.0</version>
</dependency>

For Gradle users, add the following to your build.gradle file.

dependencies {
    implementation 'net.datafaker:datafaker:1.3.0'
}

You can also use the snapshot version (1.4.0-SNAPSHOT), which automatically gets published after every push to the master branch of this repository. Binary repository URL for snapshots download is https://s01.oss.sonatype.org/content/repositories/snapshots/.

In your Java code:

Faker faker = new Faker();

String name = faker.name().fullName(); // Miss Samanta Schmidt
String firstName = faker.name().firstName(); // Emory
String lastName = faker.name().lastName(); // Barton

String streetAddress = faker.address().streetAddress(); // 60018 Sawayn Brooks Suite 449

Or in your Kotlin code:

val faker = Faker()

val name = faker.name().fullName() // Miss Samanta Schmidt
val firstName = faker.name().firstName() // Emory
val lastName = faker.name().lastName() // Barton

val streetAddress = faker.address().streetAddress() // 60018 Sawayn Brooks Suite 449

Documentation

https://www.datafaker.net/documentation/providers/

Contributions

See CONTRIBUTING.md

Providers

  • Address
  • Ancient
  • Animal
  • App
  • Appliance
  • Aqua Teen Hunger Force
  • Artist
  • Avatar
  • Aviation
  • Babylon5
  • Back To The Future
  • Barcode
  • Basketball
  • Beer
  • Bojack Horseman
  • Book
  • Bool
  • Bossa Nova
  • Breaking Bad
  • Business
  • CNPJ Brazilian National Registry of Legal Entities
  • CPF Brazilian individual taxpayer registry identification
  • Cat
  • ChuckNorris
  • Code
  • Coin
  • Color
  • Commerce
  • Company
  • Crypto
  • DateAndTime
  • Demographic
  • Dessert
  • Disease
  • Dog
  • Domain
  • DragonBall
  • Dune
  • Durations
  • Educator
  • EnglandFootBall
  • Esports
  • File
  • Finance
  • Food
  • Formula 1 (🏎️)
  • Friends
  • FunnyName
  • GameOfThrones
  • Gender
  • Hacker
  • HarryPotter
  • Heartstone
  • Hipster
  • HitchhikersGuideToTheGalaxy
  • Hobbit
  • HowIMetYourMother
  • IdNumber
  • Internet
  • Job
  • Kaamelott
  • LeagueOfLegends
  • Lebowski
  • LordOfTheRings
  • Lorem
  • Matz
  • Minecraft
  • Mood
  • Mountains
  • Music
  • Name
  • Nation
  • Nigeria
  • Number
  • Options
  • Overwatch
  • Passport
  • PhoneNumber
  • Photography
  • Pokemon
  • Princess Bride
  • Relationship Terms
  • Resident Evil
  • RickAndMorty
  • Robin
  • RockBand
  • RuPaul's Drag Race
  • Shakespeare
  • Sip
  • SlackEmoji
  • Space
  • StarCraft
  • StarTrek
  • Stock
  • Superhero
  • Team
  • Touhou
  • TwinPeaks
  • Twitter
  • University
  • Vehicle
  • Weather
  • Witcher
  • Yoda
  • Zelda

Usage with Locales

Faker faker = new Faker(new Locale("YOUR_LOCALE"));

For example:

new Faker(new Locale("en-us")).address().zipCodeByState("CA"));

Supported Locales

  • ar
  • bg
  • ca
  • ca-CAT
  • cs
  • da-DK
  • de
  • de-AT
  • de-CH
  • en
  • en-AU
  • en-au-ocker
  • en-BORK
  • en-CA
  • en-GB
  • en-IND
  • en-MS
  • en-NEP
  • en-NG
  • en-NZ
  • en-PAK
  • en-SG
  • en-UG
  • en-US
  • en-ZA
  • es
  • es-MX
  • fa
  • fi-FI
  • fr
  • he
  • hu
  • in-ID
  • it
  • ja
  • ko
  • nb-NO
  • nl
  • pl
  • pt
  • pt-BR
  • ru
  • sk
  • sv
  • sv-SE
  • tr
  • uk
  • vi
  • zh-CN
  • zh-TW

LICENSE

Copyright (c) 2022 DataFaker.net See the LICENSE file for license rights and limitations.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].