Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,28 @@
$faker->text(20, 3, 10); // Sedev emeze evekem ez denebebekepep...

```

## Suggested next development

A high-impact next step would be introducing a provider-based architecture with locale dictionaries.

Why this is useful:
- easier to extend (e.g. company names, product names, job titles, UUIDs, IBAN, VAT IDs)
- locale support becomes clean and explicit (`en`, `hu`, `de`, etc.)
- avoids bloating the core `Faker` class with many domain-specific methods

Proposed API direction:

```php
$faker = Faker::init(['locale' => 'hu']);

$faker->person()->fullName();
$faker->company()->name();
$faker->internet()->email();
$faker->finance()->iban('HU');
```

Implementation notes:
- keep current methods for backward compatibility
- add providers incrementally (`PersonProvider`, `CompanyProvider`, `InternetProvider`, `FinanceProvider`)
- add deterministic generation via optional seed support for repeatable tests
Loading