|
| 1 | +--- |
| 2 | +title: English (India) |
| 3 | +description: Indian English locale for Xefi Faker PHP |
| 4 | +--- |
| 5 | + |
| 6 | +You need to require the locale to be able to use it |
| 7 | +```bash |
| 8 | +composer require --dev xefi/faker-php-locales-en-in |
| 9 | +``` |
| 10 | + |
| 11 | +Be sure to setup faker with the `en_IN` locale to be able to use this: |
| 12 | + |
| 13 | +```php |
| 14 | +$faker = new Xefi\Faker\Faker('en_IN'); |
| 15 | +``` |
| 16 | + |
| 17 | +## Address |
| 18 | + |
| 19 | +#### State |
| 20 | +```php |
| 21 | +$faker->state(); // Uttarakhand |
| 22 | +``` |
| 23 | + |
| 24 | +#### House Number |
| 25 | +```php |
| 26 | +$faker->houseNumber(); // 104 |
| 27 | +``` |
| 28 | + |
| 29 | +#### Street Name |
| 30 | +```php |
| 31 | +$faker->streetName(); // Hills Rajpath |
| 32 | +``` |
| 33 | + |
| 34 | +#### Street Address |
| 35 | +```php |
| 36 | +$faker->streetAddress(); // 33, Chowraha Residency |
| 37 | +``` |
| 38 | + |
| 39 | +#### Zip code |
| 40 | +```php |
| 41 | +$faker->zipCode(); // 861325 |
| 42 | +``` |
| 43 | + |
| 44 | +#### City |
| 45 | +```php |
| 46 | +$faker->city(); // Mumbai |
| 47 | +``` |
| 48 | + |
| 49 | +#### Full Address |
| 50 | +```php |
| 51 | +$faker->fullAddress(); // 287, Path Church, Ahmedabad, Rajasthan 584416 |
| 52 | +``` |
| 53 | + |
| 54 | +## Colors |
| 55 | + |
| 56 | +#### Safe Color Name |
| 57 | + |
| 58 | +```php |
| 59 | +$faker->safeColorName(); // Teal |
| 60 | +``` |
| 61 | + |
| 62 | +#### Color Name |
| 63 | +```php |
| 64 | +$faker->colorName() // CharcoalGray |
| 65 | +``` |
| 66 | + |
| 67 | +## Company |
| 68 | + |
| 69 | +#### Company |
| 70 | +```php |
| 71 | +$faker->company(); // Godrej Group |
| 72 | +``` |
| 73 | + |
| 74 | +#### GSTIN |
| 75 | +```php |
| 76 | +$faker->gstin(); // 12OCKPK3802V6Z2 |
| 77 | +``` |
| 78 | + |
| 79 | +## Financial |
| 80 | + |
| 81 | +#### Iban |
| 82 | + |
| 83 | +Please see [base method](/extensions/financial#iban) for details |
| 84 | + |
| 85 | +```php |
| 86 | +$faker->iban(countryCode: 'IN', format: 'See code') // IN28CU9011517189912178556470 |
| 87 | +``` |
| 88 | + |
| 89 | +## Person |
| 90 | + |
| 91 | +#### Name |
| 92 | +```php |
| 93 | +// Gender: null(both), "M" (male) or "F" (female) |
| 94 | +$faker->name(gender: 'F') // Suhana Tiwari |
| 95 | +``` |
| 96 | + |
| 97 | +#### Firstname |
| 98 | +```php |
| 99 | +// Gender: null(both), "M" (male) or "F" (female) |
| 100 | +$faker->firstName(gender: 'F') // Suhana |
| 101 | +``` |
| 102 | + |
| 103 | +#### Lastname |
| 104 | +```php |
| 105 | +$faker->lastName() // Tiwari |
| 106 | +``` |
| 107 | + |
| 108 | +## Text |
| 109 | + |
| 110 | +#### Words |
| 111 | + |
| 112 | +```php |
| 113 | +$faker->words(words: 3); // Innovation drives progress |
| 114 | +``` |
| 115 | + |
| 116 | +#### Sentences |
| 117 | + |
| 118 | +```php |
| 119 | +$faker->sentences(sentences: 3); // The use of technology enables teams to work smarter and ... |
| 120 | +``` |
| 121 | + |
| 122 | +#### Paragraphs |
| 123 | + |
| 124 | +```php |
| 125 | +$faker->paragraphs(paragraphs: 3); // Monitoring progress helps identify opportunities for growth and ... |
| 126 | +``` |
0 commit comments