mordisacks/faker-php-hebrew

Hebrew (he_IL) provider for FakerPHP

Maintainers

Package info

github.com/MordiSacks/faker-php-hebrew

pkg:composer/mordisacks/faker-php-hebrew

Transparency log

Statistics

Installs: 21

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-05-19 09:29 UTC

This package is auto-updated.

Last update: 2026-06-19 09:39:20 UTC


README

A Hebrew Lorem provider for FakerPHP. Fills a gap in FakerPHP itself, which currently ships a he_IL locale that only includes Payment — no Hebrew lorem ipsum, no Hebrew text generation. This package adds that.

$faker = Faker\Factory::create('he_IL');

$faker->word();      // 'לורם'
$faker->sentence();  // 'איפסום דולור סיט אמט קונסקטורר אדיפיסינג אלית.'
$faker->paragraph(); // ...
$faker->words(5, true);
$faker->text();

Installation

composer require mordisacks/faker-php-hebrew

The provider is auto-discovered by FakerPHP's Factory::create('he_IL') thanks to the PSR-4 namespace — no manual $faker->addProvider(...) call is needed.

If you'd rather wire it up manually:

$faker = new Faker\Generator();
$faker->addProvider(new Faker\Provider\he_IL\Lorem($faker));

Requirements

  • PHP 8.2 or higher
  • fakerphp/faker ^1.19

Testing

composer install
./vendor/bin/pest

Code style is checked with Pint:

./vendor/bin/pint --test

License

MIT