Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,149,932 members, 7,806,699 topics. Date: Tuesday, 23 April 2024 at 09:10 PM

How To Generate Bulk Fake Names For Testing Apps - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How To Generate Bulk Fake Names For Testing Apps (1538 Views)

Built A Smallish Web App For Testing / How To Generate a Bar code Using Excel / Help Needed With Phpunit For Testing (2) (3) (4)

(1) (Reply) (Go Down)

How To Generate Bulk Fake Names For Testing Apps by Nobody: 4:40pm On Jan 14, 2016
Have you ever worked on an app - any kind of app and you wish to generate random names.
Well, there are several libraries for that actually, I was able to solve the problem by creating a simple API just for that purpose.

Let me try attach something that will explain it a bit clearer.

You can test the api in the browser by running these urls:
http://Nairaland.com/api/names/5/html
http://Nairaland.com/api/names/5/json

You can even use this PHP code to test-run

$data=json_decode(file_get_contents("http://Nairaland.com/api/names/5/json";));
var_dump($data);

You will find the documentation here

Oya, let the discussions begin.

Re: How To Generate Bulk Fake Names For Testing Apps by losprince(m): 11:57pm On Jan 14, 2016
you are one useful programmer
Re: How To Generate Bulk Fake Names For Testing Apps by Nobody: 8:49am On Jan 15, 2016
losprince:
you are one useful programmer
Really? are you sure of your statement because there are folks on this board that will contest that.
Re: How To Generate Bulk Fake Names For Testing Apps by Booyakasha(f): 1:27pm On Jan 15, 2016
Good job bro.
Re: How To Generate Bulk Fake Names For Testing Apps by Nobody: 1:38pm On Jan 15, 2016
Thanks
Re: How To Generate Bulk Fake Names For Testing Apps by losprince(m): 9:17pm On Jan 16, 2016
dhtml18:

Really? are you sure of your statement because there are folks on this board that will contest that.
that's probably because you jerk around a times
Re: How To Generate Bulk Fake Names For Testing Apps by Nobody: 9:42pm On Jan 16, 2016
losprince:
that's probably because you jerk around a times
hmn, all codes and no fun makes dhtml a dead boy troll!
Re: How To Generate Bulk Fake Names For Testing Apps by DonSegmond(m): 11:47pm On Jan 16, 2016
Even better, use Faker. not an API, a local library with no limit.
Re: How To Generate Bulk Fake Names For Testing Apps by Nobody: 12:26am On Jan 17, 2016
If you read the original post on my website, I specified the library i used for the API - it is an open-source library -

Yeah, there are many ways to go about it. The thing is, most times you are working on a small project and just need a few names to test-drive your stuff. But if you are looking at downloading millions of names, please don't kill my server o - anyway, i have various means to attempt to check-mate that.

(1) (Reply)

Do You Think You Can Develop A Search Engine From Scratch? / Does Anyone Know Itex Integrated Services In VI / See The Reason Given For Banning Dhtml18

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.