Skip to content

Lapinou42/MBFaker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBFaker

This library is a port of Ruby's Faker library that generates fake data.

You can use it for taking real-looking test data, screenshots and populate your database during development.

To parse language files it uses YAML.framework

iOS Screenshot

Installation

Insert line below into your Podfile:

pod 'MBFaker'

Languages

It works with original language files in yaml with small modifications.

Default language is English. You can change it with setLanguage method

[MBFaker setLanguage:@"en"];

Language name is just name of file with it.

Usage

#import <MBFaker/MBFaker.h>

// ...

NSString* name  = [MBFakerName name];
NSString* email = [MBFakerInternet freeEmail];

Contributing

If you'd like to contribute code or formats/data for another locale, fork the project at github, make your changes, then send a pull request.

License

This code is free to use under the terms of the MIT license.

About

Objective-C fake data generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 82.9%
  • Objective-C 9.9%
  • C++ 7.0%
  • Ruby 0.2%