Faker 是一个 PHP 虚假数据生成器和测试工具,用于生成逼真的随机值以填充数据库和测试应用程序。它作为一个本地化库,生成针对特定语言和区域格式定制的数据,并提供了一个通过自定义类和特定领域格式化程序扩展数据生成的框架。
fakerphp/faker 的主要功能包括:Realistic Data Generators, Custom Data Type Providers, Database Seeding Tools, Localization Support, Random Number Generator Seeding, Seedable Generators, Structured Random Data Generation, PHP Localization Utilities。
fakerphp/faker 的开源替代品包括: fzaninotto/faker — Faker is a PHP library for creating realistic synthetic data used for testing, prototyping, and populating database… brianvoe/gofakeit — gofakeit is a Go library for creating realistic synthetic datasets and populating Go structs with mock information. It… chancejs/chancejs — Chance is a JavaScript library for generating random data, designed to produce realistic test data for automated tests… dius/java-faker — Java-faker is a synthetic data generator and mock data library for Java applications. It provides utilities to create… lk-geimfari/mimesis — Mimesis is a Python synthetic data generator used to create realistic fake datasets and mock data for software testing… w3tecch/typeorm-seeding — TypeORM Seeding is a development utility designed to automate database population and schema management within…
Faker is a PHP library for creating realistic synthetic data used for testing, prototyping, and populating database entities. It serves as a test data generator and localized mocking tool capable of producing synthetic names, addresses, and identifiers specific to various countries and languages. The library provides mechanisms to ensure data consistency and quality, including deterministic seeding to produce identical data sequences across executions and stateful uniqueness tracking to prevent duplicate values. It also supports probability-weighted optionality to simulate missing data and cu
Chance is a JavaScript library for generating random data, designed to produce realistic test data for automated tests and prototypes. It uses a Mersenne Twister pseudo-random number generator that accepts an optional seed value, enabling reproducible sequences of random values across multiple runs. The library provides a wide range of generators for common data types, including random integers, floats, booleans, characters, strings, and dates, all with configurable ranges and character pools. It can generate realistic geographic data like addresses, as well as financial data such as credit c
gofakeit is a Go library for creating realistic synthetic datasets and populating Go structs with mock information. It functions as a deterministic data generator, allowing for seedable random number generation to ensure reproducible datasets for software testing. The project distinguishes itself by providing a mock data API server that exposes generation functions as HTTP endpoints and a synthetic dataset exporter for producing files in CSV, JSON, and XML formats. It also includes a command-line interface for generating mock data directly from the terminal. The library covers a wide array o
Java-faker is a synthetic data generator and mock data library for Java applications. It provides utilities to create randomized, believable fake records such as names and addresses to populate test environments and verify application logic without using real user information. The library specializes in localized data generation, producing synthetic content tailored to specific languages and regional formats. This allows for the verification of application accuracy across different global locales. The tool covers broad capabilities for automated testing mocking, including the generation of m