awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
fakerphp avatar

fakerphp/fakerFork

0
View on GitHub↗
3,976 星标·423 分支·PHP·2 次浏览fakerphp.github.io↗

Faker

Faker 是一个 PHP 虚假数据生成器和测试工具,用于生成逼真的随机值以填充数据库和测试应用程序。它作为一个本地化库,生成针对特定语言和区域格式定制的数据,并提供了一个通过自定义类和特定领域格式化程序扩展数据生成的框架。

该库通过确定性随机种子确保测试环境中的可重复性。它包含控制输出质量的机制,例如强制值唯一性,以及通过偶尔产生 null 值来模拟缺失数据。

该系统支持针对姓名、地址和电话号码的本地化数据生成,并具有自动回退支持。它还允许创建自定义数据提供程序来处理特定的业务对象。

Features

  • Realistic Data Generators - Produces realistic randomized data such as names, addresses, and emails for testing and prototyping.
  • Custom Data Type Providers - Allows the creation of custom data providers to define specialized formats for domain-specific data types.
  • Database Seeding Tools - Automates the population of databases with realistic synthetic data for development and testing.
  • Localization Support - Supports data generation for specific locales with automatic fallback to default languages.
  • Random Number Generator Seeding - Supports initializing random number generators with specific seeds for deterministic data reproduction.
  • Seedable Generators - Provides seedable random number generators to ensure deterministic and reproducible data sequences.
  • Structured Random Data Generation - Uses a provider-based architecture to generate complex, structured random data through dedicated classes.
  • PHP Localization Utilities - Generates fake data tailored to specific languages and regional formats with automatic fallback support.
  • Localized Test Data Generation - Produces fake names, addresses, and phone numbers that match specific cultural and linguistic regional formats.
  • Mock Data Generators - Provides a framework for building specialized mock data generators for domain-specific business objects.
  • Uniqueness Constraints - Ensures generated values remain unique across a dataset to prevent duplicates in test data.
  • Mock Null Value Handlings - Simulates missing data by allowing generators to occasionally produce null values for edge-case testing.
  • Locale Fallback Resolution - Provides a mechanism to resolve missing localized data by traversing a priority list of fallback locales.
  • Automated Software Testing - Generates randomized input data to verify application correctness across various formats and edge cases.
  • Value Constraints - Allows applying specific constraints, such as uniqueness or optional nulls, to generated random values.
  • Testing Utilities - Provides helper utilities for creating consistent and repeatable datasets via seeded randomness for software testing.
  • Test Data Seeding - Uses fixed random seeds to populate databases consistently for repeatable debugging and testing.
  • Testing and Quality - Generates fake data for testing.

Star 历史

fakerphp/faker 的 Star 历史图表fakerphp/faker 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

fakerphp/faker 是做什么的?

Faker 是一个 PHP 虚假数据生成器和测试工具,用于生成逼真的随机值以填充数据库和测试应用程序。它作为一个本地化库,生成针对特定语言和区域格式定制的数据,并提供了一个通过自定义类和特定领域格式化程序扩展数据生成的框架。

fakerphp/faker 的主要功能有哪些?

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 有哪些开源替代品?

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 的开源替代方案

相似的开源项目,按与 Faker 的功能重合度排序。
  • fzaninotto/fakerfzaninotto 的头像

    fzaninotto/Faker

    26,674在 GitHub 上查看↗

    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

    PHP
    在 GitHub 上查看↗26,674
  • chancejs/chancejschancejs 的头像

    chancejs/chancejs

    6,541在 GitHub 上查看↗

    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

    JavaScript
    在 GitHub 上查看↗6,541
  • brianvoe/gofakeitbrianvoe 的头像

    brianvoe/gofakeit

    5,306在 GitHub 上查看↗

    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

    Godatafakegenerator
    在 GitHub 上查看↗5,306
  • dius/java-fakerDiUS 的头像

    DiUS/java-faker

    4,899在 GitHub 上查看↗

    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

    Java
    在 GitHub 上查看↗4,899
  • 查看 Faker 的所有 30 个替代方案→