Swiss Italian (it_CH) locale for Faker PHP.
composer require --dev xefi/faker-php-locales-it-chThe service provider is discovered automatically through Composer.
use Xefi\Faker\Faker;
$faker = new Faker('it_CH');Generators without a it_CH variant fall back to the default locale.
| Method | Extension | Example |
|---|---|---|
province() / provinceCode() |
Address | Ticino / TI |
avs(bool $formatted = false) |
Person | 756.1234.5678.97 (EAN-13 check digit) |
companyNumber() |
Company | CHE-123.456.788 (UID, modulo 11 check digit) |
vat() |
Company | CHE-123.456.788 IVA |
iban() |
Financial | CH9300762011623852957 |
- Fork the repository and create a branch from
main. - Add an extension under
src/Extensions/and register it inFakerItChServiceProvider::boot(). - Add a test under
tests/Unit/. - Run the suite with
vendor/bin/phpunit(ordocker compose run php vendor/bin/phpunit). - Open a pull request against
main.
MIT