Bogus 28.2.1

A simple and sane data generator for populating objects that supports different locales. A delightful port of the famed faker.js and inspired by FluentValidation. Use Bogus to create UIs with fake data or seed databases. Get started by using Faker class or a DataSet directly.

Showing the top 20 packages that depend on Bogus.

Packages Downloads
NodaTime.Bogus
Add support for NodaTime https://nodatime.org/ to Bogus https://github.com/bchavez/Bogus
20
NodaTime.Bogus
Add support for NodaTime https://nodatime.org/ to Bogus https://github.com/bchavez/Bogus
25
NodaTime.Bogus
Add support for NodaTime https://nodatime.org/ to Bogus https://github.com/bchavez/Bogus
27
NodaTime.Bogus
Add support for NodaTime https://nodatime.org/ to Bogus https://github.com/bchavez/Bogus
29

## v28.2.1 Release Date: 2019-09-10 * Added `Faker<T>.RuleFor(string, (f, t) => )` overload. * Internal re-factoring `.RuleFor` overload logic. Simplified overload call chain. * Internal `Faker<T>.RuleForInternal()` renamed to `Faker<T>.AddRule()` ## v28.1.1 Release Date: 2019-09-09 * Issue 253, PR 254: New rule overload for `Faker<T>.RuleFor('string',...)`. Helps cases that require rules for protected or hidden members of `T`. ## v28.0.3 Release Date: 2019-08-28 * Issue 249: Fixed `Internet.Url()` including spaces in domain names for `pt_BR` locale or any locale with compound first names that may contain spaces. Thanks RodrigoRodriguesX10! * PR 241: General code quality improvements in `DataSets.System`. Better XML docs and lower array allocations. Thanks bartdebever! * PR 245: XML doc improvements to `DataSets.Lorem`. Thanks bartdebever! ## v28.0.2 Release Date: 2019-07-07 * PR 235: Added `Bogus.DataSets.Vehicle.GbRegistrationPlate()` in `Bogus.Extensions.UnitedKingdom` extension namespace to generate GB registration plates. Thanks @colinangusmackay. ## v28.0.1 Release Date: 2019-07-02 * BREAKING: Deterministic sequence values may have changed for fake email addresses derived from `Internet.Email()` or `Internet.UserName()` in locales other than `en`. * Issue 229: Adds `Finance.Iban(countryCode)` ISO3166 country code parameter. Allows generating IBAN codes for specific countries. The country code must be a supported otherwise an exception is thrown. * Issue 225: Better support for transliteration of international Unicode characters to US-Latin/Roman ASCII character sets. `Internet.Email()` and `Internet.UserName()` are more respectful of specified locale using character transliteration. * Added `.Transliterate()` string extension method in `Bogus.Extensions` namespace. * Added `Internet.UserNameUnicode()` that preserves Unicode characters in user names. * Minor performance improvement to `Utils.Slugify` using compiled Regex. * Issue 232: Adds `.OrNull[T]() where T : struct` overload which makes it easier to work with nullable types without type casting. * Added `defaultValue` parameter to `.OrDefault(f, weight, defaultValue)` that can default to a different value than the `default` keyword. Full History Here: https://github.com/bchavez/Bogus/blob/master/HISTORY.md

.NET Framework 4.0

  • No dependencies.

.NET Standard 1.3

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
35.6.4 0 09/26/2025
35.6.3 12 04/16/2025
35.6.2 16 02/27/2025
35.6.1 17 09/08/2024
35.6.0 18 07/23/2024
35.5.1 17 05/13/2024
35.5.0 20 03/15/2024
35.4.1 35 03/15/2024
35.4.0 17 02/13/2024
35.3.2 18 02/13/2024
35.3.1 17 02/13/2024
35.3.0 25 02/13/2024
35.2.0 28 02/13/2024
35.0.1 25 02/13/2024
34.0.2 19 02/06/2024
34.0.1 18 02/13/2024
33.1.1 19 02/14/2024
33.0.2 27 02/13/2024
33.0.1 26 02/13/2024
32.1.1 20 02/13/2024
32.0.2 23 02/14/2024
32.0.1 26 02/13/2024
31.0.3 30 02/13/2024
30.0.4 17 02/13/2024
30.0.1-beta-4 18 02/13/2024
30.0.1-beta-3 32 02/13/2024
30.0.1-beta-2 27 02/13/2024
30.0.1-beta-1 15 02/13/2024
29.0.2 24 06/11/2021
29.0.1 29 02/13/2024
28.4.4 18 02/14/2024
28.4.3 19 02/13/2024
28.4.2 28 02/13/2024
28.4.1 18 02/14/2024
28.3.2 17 02/13/2024
28.3.1 20 02/13/2024
28.2.1 17 02/13/2024
28.1.1 21 02/13/2024
28.0.3 16 02/14/2024
28.0.2 29 02/13/2024
28.0.1 16 02/13/2024
27.0.1 20 02/13/2024
26.0.2 20 02/13/2024
26.0.1 20 02/13/2024
25.0.4 17 02/13/2024
25.0.3 30 02/13/2024
25.0.2 20 02/13/2024
25.0.1 17 02/13/2024
24.3.1 18 02/13/2024
24.3.0 22 02/13/2024
24.2.0 34 02/13/2024
23.0.2 27 02/13/2024
22.3.2 30 02/13/2024
22.3.1 20 02/13/2024
22.2.1 26 02/14/2024
22.1.4 19 02/13/2024
22.1.3 20 02/13/2024
22.1.2 19 02/14/2024
22.1.1 22 02/13/2024
22.0.9 23 02/13/2024
22.0.8 18 02/13/2024
22.0.7 28 02/13/2024
22.0.6 32 02/14/2024
22.0.5 18 02/13/2024
22.0.3 17 02/13/2024
22.0.2 29 02/13/2024
22.0.1 18 02/14/2024
21.0.5 18 02/13/2024
21.0.4 25 02/13/2024
21.0.2 23 02/13/2024
20.0.2 32 02/14/2024
20.0.1 21 02/13/2024
19.0.2 20 02/14/2024
18.0.2 17 02/13/2024
18.0.1 21 02/13/2024
17.0.1 29 02/13/2024
16.0.3 28 02/14/2024
16.0.2 19 02/13/2024
15.0.7 18 02/14/2024
15.0.6 16 02/13/2024
15.0.5 24 02/14/2024
15.0.3 18 02/13/2024
15.0.1 25 02/13/2024
12.0.1 31 02/14/2024
11.0.5 25 02/13/2024
11.0.4 26 02/13/2024
11.0.3 25 02/13/2024
11.0.2 18 02/13/2024
11.0.1 32 02/13/2024
10.0.1 18 02/13/2024
9.0.2 25 02/13/2024
9.0.1 26 02/14/2024
8.0.4 27 02/14/2024
8.0.3 31 02/14/2024
8.0.2 20 02/13/2024
8.0.1 20 02/13/2024
8.0.1-beta-1 19 02/14/2024
7.1.7 29 02/13/2024
7.1.6 17 02/13/2024
7.1.5 21 02/14/2024
7.1.4 33 02/13/2024
7.1.3 18 02/13/2024
7.1.3-beta-1 17 02/13/2024
7.1.2 29 02/13/2024
7.1.2-beta-1 22 02/13/2024
7.1.1 20 02/13/2024
7.1.1-beta-1 18 02/13/2024
6.1.1 31 02/13/2024
6.1.1-beta-1 29 02/13/2024
5.1.1-beta-3 15 02/13/2024
5.1.1-beta-2 23 02/13/2024
5.1.1-beta-1 26 02/13/2024
5.0.1 26 02/13/2024
5.0.1-beta-2 28 02/13/2024
4.0.1 17 02/13/2024
4.0.1-beta-1 37 02/13/2024
3.0.6 17 02/13/2024
3.0.6-beta-1 19 02/13/2024
3.0.5 16 02/13/2024
3.0.5-beta-4 18 02/13/2024
3.0.5-beta-3 21 02/13/2024
3.0.5-beta-2 18 02/13/2024
3.0.4 24 02/14/2024
3.0.3 19 02/13/2024
3.0.2 24 02/13/2024
3.0.1 31 02/13/2024
3.0.0.3 27 02/13/2024
3.0.0.2 0 07/12/2015
3.0.0.1 0 07/12/2015
2.1.5.2 0 06/22/2015
2.1.5.1 0 06/11/2015
2.1.4.2 0 06/11/2015
2.1.4.1 29 02/13/2024
2.1.4 23 02/13/2024