Download the PHP package sedkiy/faker without Composer

On this page you can find all versions of the php package sedkiy/faker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package faker

Sedkiy Faker Banner

Sedkiy Faker

A FakerPHP extension for generating culturally accurate, hyper-localized test data across 19 countries.

Latest Version on Packagist Total Downloads PHP Laravel


Table of Contents


Why Sedkiy Faker?

Standard FakerPHP locale fallbacks often produce structurally invalid phone numbers, non-existent cities, and culturally mismatched honorifics. Sedkiy Faker fixes this at the container level, so fake() just works correctly out of the box.

Standard FakerPHP Fallbacks Sedkiy Faker Localized Engine
Structurally invalid phone formats Real ITU-T compliant mobile and landline numbers
Non-existent / generic city names Authentic city and region catalogs per territory
Culturally mismatched name honorifics Gender and region-specific honorifics (e.g., Si, Lalla)
Manual setup and provider overriding Zero-configuration auto-extension into Laravel

Requirements

Requirement Version
PHP 8.1+
Composer Any recent version
Laravel 10, 11, or 12 (optional — not required for standalone use)

Installation


Quick Start

That's it — no config files, no service provider setup required for standalone use.


Usage

Standalone PHP Usage

Instantiate a localized generator manually using the fluent SedkiyFaker factory:

Reproducible Outputs (Seeding)

Pass a seed to get deterministic output across test runs:

Chaining Custom Providers

Add your own providers on top without losing locale-specific behavior:

This also works with fully custom provider classes you write yourself — useful for fields Sedkiy Faker doesn't ship with (national ID formats, tax numbers, etc.).

Laravel Integration (Zero Code Changes)

Zero Code Pollution — there's no need to touch your existing factories or seeders. Sedkiy Faker hooks directly into Laravel's fake() helper and $this->faker property via container extenders.

Set your desired locale in .env:

If omitted, it falls back to app.faker_locale in config/app.php, then to en_US.

Your existing factories now generate localized data automatically:

Publishing the Config File (Optional)


Supported Locales & Fields

Each locale supports the Person, Address, Internet, and (MENA only) PhoneNumber providers. Commonly used methods per category:

Note: Fields outside these categories (e.g. jobTitle(), url()) are not part of this package's localized data and will fall back to FakerPHP's generic/default provider output — verify with a quick test before relying on them in a specific locale.

MENA Region

Locale Country Providers
ar_MA Morocco Person, Address, PhoneNumber, Internet
ar_DZ Algeria Person, Address, PhoneNumber, Internet
ar_TN Tunisia Person, Address, PhoneNumber, Internet
ar_EG Egypt Person, Address, PhoneNumber, Internet
ar_LY Libya Person, Address, PhoneNumber, Internet
ar_SA Saudi Arabia Person, Address, PhoneNumber, Internet
ar_LB Lebanon Person, Address, PhoneNumber, Internet
ar_JO Jordan Person, Address, PhoneNumber, Internet

Europe & North America

Locale Country Providers
fr_FR France Person, Address, PhoneNumber
de_DE Germany Person, Address, PhoneNumber
es_ES Spain Person, Address, PhoneNumber
it_IT Italy Person, Address, PhoneNumber
pt_PT Portugal Person, Address, PhoneNumber
en_GB United Kingdom Person, Address, PhoneNumber
nl_NL Netherlands Person, Address, PhoneNumber
nl_BE Belgium Person, Address, PhoneNumber
pl_PL Poland Person, Address, PhoneNumber
ro_RO Romania Person, Address, PhoneNumber
en_US United States Person, Address, PhoneNumber

Testing

Tests are written with Pest PHP and validate reproducibility, ITU-T phone format compliance, postcode regex rules, and container extensions.


Contributing

Contributions that extend locale coverage are welcome:

  1. Fork the repository and create a feature branch.
  2. Follow code standards — format with PHP CS Fixer: composer run php-cs-fixer.
  3. Ensure data integrity — new locale dictionaries need at least 30 real-world entries.
  4. Add tests in tests/Providers/ for any new locale or field.
  5. Open a Pull Request describing your changes.

License

Open-sourced under the MIT License.


All versions of faker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0||^11.0||^12.0||^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sedkiy/faker contains the following files

Loading the files please wait ...