定制 opendsr/seedfaker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

opendsr/seedfaker

最新稳定版本:0.4.0-alpha.1

Composer 安装命令:

composer require opendsr/seedfaker

包简介

Deterministic synthetic data generator — 200+ fields, 68 locales

README 文档

README

PHP binding for seedfaker — deterministic synthetic data with 200+ fields, 68 locales, same seed = same output.

CLI · Node.js · Python · Browser/WASM · Go · PHP · Ruby · MCP

Requirements

  • PHP >= 8.1 with FFI extension
  • libseedfaker_ffi shared library (built from Rust source)

Pre-1.0: API may change between minor versions. Pin your version.

Usage

use Seedfaker\SeedFaker;

$f = new SeedFaker(seed: "ci", locale: "en");

$f->field("name");                                        // "Zoe Kumar"
$f->field("phone", e164: true);                            // "+14155551234"

$f->record(["name", "email"], ctx: "strict");             // single record
$f->records(["name", "email"], n: 5, ctx: "strict");      // batch
$f->validate(["name", "email:e164"]);                     // check without generating

$f->records(["name", "email"], n: 100, corrupt: "high");  // corrupted data

SeedFaker::fingerprint();                                 // "sf0-..."
SeedFaker::fields();                                      // all field names

Documentation

Disclaimer

This software generates synthetic data that may resemble real-world identifiers, credentials, or personal information. All output is artificial. See LICENSE for the full legal disclaimer.

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固