承接 jeffersongoncalves/screentest-cli 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jeffersongoncalves/screentest-cli

Composer 安装命令:

composer create-project jeffersongoncalves/screentest-cli

包简介

CLI tool for automated screenshot generation of Filament plugins.

README 文档

README

Screentest CLI

Screentest CLI

CLI tool for automated screenshot generation of Filament plugins. Generates documentation screenshots in light and dark themes with zero manual effort.

Features

  • Reads a screentest.json config from your plugin
  • Creates a temporary Filament project via filakit
  • Installs the plugin via path repository (symlink)
  • Auto-generates seeds by analyzing Resources (static analysis)
  • Captures screenshots with Puppeteer (light + dark themes)
  • Saves to {plugin}/screenshots/{theme}/{name}.png
  • Optionally updates README.md with screenshot references

Installation

composer global require jeffersongoncalves/screentest-cli

Quick Start

# Navigate to your Filament plugin directory
cd my-filament-plugin

# Initialize config (interactive)
screentest init

# Run the complete pipeline
screentest run

Commands

Command Description
screentest init Analyze plugin and generate screentest.json
screentest run Run the complete pipeline (setup → seed → capture → readme → cleanup)
screentest setup Create temporary Filament project and install plugin
screentest seed Generate and run seeds for the temporary project
screentest capture Capture screenshots using Puppeteer
screentest readme Update README.md with screenshot references
screentest cleanup Remove temporary project

Configuration

The screentest.json file controls the entire process:

{
  "plugin": {
    "name": "My Filament Plugin",
    "package": "vendor/my-plugin"
  },
  "filakit": {
    "kit": "filakitphp/basev5"
  },
  "install": {
    "extra_packages": [],
    "plugins": [
      {
        "class": "Vendor\\MyPlugin\\MyPluginPlugin",
        "panel": "admin"
      }
    ],
    "publish": [],
    "post_install_commands": ["migrate"]
  },
  "seed": {
    "auto_detect": true,
    "user": {
      "email": "admin@example.com",
      "password": "password",
      "name": "Admin User"
    },
    "models": []
  },
  "screenshots": [
    {
      "name": "resource-list",
      "url": "admin/resources",
      "selector": "body",
      "viewport": { "width": 1920, "height": 1080, "deviceScaleFactor": 3 },
      "before": [
        { "action": "wait", "delay": 500 }
      ]
    }
  ],
  "output": {
    "directory": "screenshots",
    "themes": ["light", "dark"],
    "format": "png"
  },
  "readme": {
    "update": true,
    "section_marker": "<!-- SCREENSHOTS -->",
    "template": "table"
  }
}

Requirements

  • PHP 8.2+
  • Node.js (for Puppeteer)
  • pnpm
  • Composer
  • Composer

How It Works

  1. Init - Analyzes your plugin's composer.json and Resources to generate a config
  2. Setup - Creates a temporary Filament project using filakit, installs your plugin via symlink
  3. Seed - Auto-detects Filament Resources, maps fields to Faker methods, generates factories and seeders
  4. Capture - Launches Puppeteer, logs into Filament, navigates to each URL, captures screenshots in light and dark themes
  5. Readme - Updates your README.md between <!-- SCREENSHOTS --> markers with a table or gallery

Auto-Seed Field Mapping

Filament Component Faker Method
TextInput('name') $faker->name()
TextInput('email') $faker->safeEmail()
TextInput('title') $faker->sentence(4)
TextInput()->numeric() $faker->numberBetween(0, 100)
Textarea $faker->paragraph()
RichEditor $faker->paragraph() (wrapped in HTML)
Toggle / Checkbox $faker->boolean()
Select('..._id') FK to related model
Select->options([...]) Random from options
DatePicker $faker->date()
DateTimePicker $faker->dateTime()
ColorPicker $faker->hexColor()
FileUpload Skipped (null)

License

Screentest CLI is open-source software licensed under the MIT license.

jeffersongoncalves/screentest-cli 适用场景与选型建议

jeffersongoncalves/screentest-cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 2, 最近一次更新时间为 2026 年 02 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「documentation」 「cli」 「laravel」 「screenshots」 「puppeteer」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 jeffersongoncalves/screentest-cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jeffersongoncalves/screentest-cli 我们能提供哪些服务?
定制开发 / 二次开发

基于 jeffersongoncalves/screentest-cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-24