Logo Lanfrica

abdirazack/SomaliFaker

Domain:

natural language processing

Record type:

software
Creator:
abd
Host:
somali faker composer package # SomaliFaker A comprehensive Laravel package to generate fake Somali data using FakerPHP/Faker. This package provides a custom Faker provider for the Somali language (`so_SO`), which can be used to generate Somali-specific data like names, addresses, phone numbers, and more. ## Installation You can install the package via Composer: ```bash composer require abdirazack/somali-faker ``` The package will automatically register its service provider. ## Usage You can use the new formatters by calling them on the `faker()` helper in Laravel or directly on a `Faker\Generator` instance. Here's a list of the available formatters with examples: ### Person * **`firstName()`**: Generates a random Somali first name. ```php faker()->firstName(); // 'Ayaanle' ``` * **`lastName()`**: Generates a random Somali last name. ```php faker()->lastName(); // 'Hassan' ``` > **Note:** Both `firstName()` and `lastName()` use the same list of names, so you might get the same name for both. * **`name()`**: Generates a random Somali full name. ```php faker()->name(); // 'Ayaanle Hassan' ``` ### Address * **`city()`**: Generates a random Somali city. ```php faker()->city(); // 'Mogadishu' ``` * **`district()`**: Generates a random Somali district. ```php faker()->district(); // 'Hodan District' ``` * **`streetName()`**: Generates a random Somali street name. ```php faker()->streetName(); // 'Wadada Xamar' ``` * **`address()`**: Generates a random Somali address. ```php faker()->address(); // '123 Wadada Xamar, Hodan District, Mogadishu' ``` ### Company * **`company()`**: Generates a random Somali company name. ```php faker()->company(); // 'Hormuud Telecom' ``` * **`companyPrefix()`**: Generates a random Somali company prefix. ```php faker()->companyPrefix(); // 'Shirkadda' ``` * **`companySuffix()`**: Generates a random Somali company suffix. ```php faker()->companySuffix(); // 'Group' ``` ### PhoneNumber * **`phoneNumber()`**: Generates a random …

Languages

Licenses