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.

No packages depend on Bogus.

## 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.2 8 02/28/2025
35.6.1 16 09/03/2024
35.6.0 12 07/21/2024
35.5.1 18 05/27/2024
35.5.0 14 03/13/2024
35.4.1 17 03/13/2024
35.4.0 18 01/19/2024
35.3.2 17 01/19/2024
35.3.1 17 01/19/2024
35.3.0 18 01/04/2024
35.2.0 15 12/31/2023
35.0.1 16 12/12/2023
34.0.2 1,950 07/21/2022
34.0.1 54 09/04/2022
33.1.1 2,150 06/27/2022
33.0.2 42 09/08/2022
33.0.1 50 08/24/2022
32.1.1 43 09/03/2022
32.0.2 65 09/07/2022
32.0.1 52 09/08/2022
31.0.3 30 09/08/2022
30.0.4 25 08/24/2022
30.0.1-beta-4 27 09/07/2022
30.0.1-beta-3 55 09/07/2022
30.0.1-beta-2 42 09/08/2022
30.0.1-beta-1 46 08/21/2022
29.0.2 81 09/08/2022
29.0.1 24 08/21/2022
28.4.4 42 09/07/2022
28.4.3 32 09/08/2022
28.4.2 45 09/03/2022
28.4.1 42 09/01/2022
28.3.2 22 09/08/2022
28.3.1 56 08/01/2022
28.2.1 38 09/07/2022
28.1.1 40 08/21/2022
28.0.3 56 09/07/2022
28.0.2 23 08/21/2022
28.0.1 28 09/08/2022
27.0.1 47 08/11/2022
26.0.2 59 08/23/2022
26.0.1 58 09/07/2022
25.0.4 31 08/01/2022
25.0.3 21 09/07/2022
25.0.2 29 08/20/2022
25.0.1 46 07/31/2022
24.3.1 57 08/11/2022
24.3.0 40 08/24/2022
24.2.0 31 07/21/2022
23.0.2 22 08/25/2022
22.3.2 52 09/03/2022
22.3.1 61 09/02/2022
22.2.1 42 09/02/2022
22.1.4 47 08/11/2022
22.1.3 23 09/03/2022
22.1.2 23 09/07/2022
22.1.1 41 08/24/2022
22.0.9 44 08/24/2022
22.0.8 50 09/03/2022
22.0.7 28 08/20/2022
22.0.6 40 08/11/2022
22.0.5 23 09/07/2022
22.0.3 71 09/02/2022
22.0.2 74 08/24/2022
22.0.1 43 09/07/2022
21.0.5 22 08/23/2022
21.0.4 25 09/08/2022
21.0.2 30 08/24/2022
20.0.2 50 09/08/2022
20.0.1 26 09/02/2022
19.0.2 27 09/09/2022
18.0.2 78 09/02/2022
18.0.1 29 09/02/2022
17.0.1 53 09/08/2022
16.0.3 40 09/01/2022
16.0.2 46 09/08/2022
15.0.7 53 09/09/2022
15.0.6 44 08/26/2022
15.0.5 44 09/08/2022
15.0.3 41 08/11/2022
15.0.1 24 09/07/2022
12.0.1 53 09/02/2022
11.0.5 74 09/07/2022
11.0.4 44 09/07/2022
11.0.3 24 09/08/2022
11.0.2 45 08/24/2022
11.0.1 23 09/08/2022
10.0.1 52 09/02/2022
9.0.2 22 08/21/2022
9.0.1 28 09/07/2022
8.0.4 59 09/10/2022
8.0.3 58 09/10/2022
8.0.2 40 08/11/2022
8.0.1 26 08/11/2022
8.0.1-beta-1 43 08/21/2022
7.1.7 22 09/02/2022
7.1.6 41 09/08/2022
7.1.5 45 08/24/2022
7.1.4 59 08/23/2022
7.1.3 36 07/31/2022
7.1.3-beta-1 55 09/07/2022
7.1.2 24 07/21/2022
7.1.2-beta-1 23 08/26/2022
7.1.1 48 09/08/2022
7.1.1-beta-1 55 09/02/2022
6.1.1 41 08/22/2022
6.1.1-beta-1 48 08/11/2022
5.1.1-beta-3 32 08/25/2022
5.1.1-beta-2 58 09/08/2022
5.1.1-beta-1 51 08/20/2022
5.0.1 43 09/08/2022
5.0.1-beta-2 76 09/02/2022
4.0.1 44 09/08/2022
4.0.1-beta-1 60 09/02/2022
3.0.6 23 09/02/2022
3.0.6-beta-1 54 09/08/2022
3.0.5 65 08/26/2022
3.0.5-beta-4 51 09/04/2022
3.0.5-beta-3 48 08/24/2022
3.0.5-beta-2 55 09/08/2022
3.0.4 54 08/23/2022
3.0.3 45 08/21/2022
3.0.2 56 08/11/2022
3.0.1 29 08/22/2022
3.0.0.3 34 09/08/2022
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 74 07/31/2022
2.1.4 46 09/07/2022