bairwell/faker-en-gb-ons-lastnames

Last names/Surnames from the UK's Office of National Statistics as a provider for Faker

v1.0.1 2019-08-29 20:53 UTC

This package is auto-updated.

Last update: 2024-11-29 06:29:35 UTC


README

Need surnames that "look real" for a UK orientated application (for example, for testing search facilities or for creating a honeypot system)? Well, this is the Faker provider library for you!

Seeded with data from the UK's Office Of National Statistics and containing the top 50,000 surnames out of 54,218,802 (based on 2002 available data) - all complete with frequency weighting - so the data "looks right".

The names are formatted using namecase.

License

The Data is available under the Open Government Licence v3.0 as per http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/

This package is not supported/sponsored/acknowledged/recommended by the UK Government or the Office of National Statistics. It is entirely unofficial.

Usage

    $faker=new \Faker\Generator();
    $faker->addProvider(new \Bairwell\Faker\EnGbOns\Lastnames\Lastnames($faker));
    $fakeName=$faker->lastName;