定制 evanschleret/formforge 二次开发

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

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

evanschleret/formforge

最新稳定版本:v1.1.1

Composer 安装命令:

composer require evanschleret/formforge

包简介

Deterministic dynamic forms engine for Laravel

README 文档

README

FormForge banner

FormForge

Deterministic dynamic forms for Laravel.

Important

This README is intentionally lightweight. For complete, chaptered documentation, go to: formforge.schleret.ch

Packagist Version Packagist Downloads License PHP >= 8.2 Laravel 12.x | 13.x

What FormForge Is

FormForge is a backend form engine for Laravel (non-UI):

  • deterministic form schema
  • immutable form revisions
  • strict server-side validation
  • built-in HTTP API
  • scoped routes and owner-aware authorization
  • submission exports (CSV/JSONL)
  • GDPR retention/anonymization tools

Install

composer require evanschleret/formforge
php artisan formforge:install
php artisan migrate

Quick Start (Code-First)

<?php

declare(strict_types=1);

use EvanSchleret\FormForge\Facades\Form;

Form::define('contact')
    ->title('Contact')
    ->version('1')
    ->text('name')->required()
    ->email('email')->required()
    ->textarea('message')->required();

Form::sync();

$submission = Form::get('contact')->submit([
    'name' => 'Ada',
    'email' => 'ada@example.com',
    'message' => 'Hello',
]);

HTTP API (Optional)

Enable and configure endpoints in config/formforge.php, then use routes under:

  • /api/formforge/v1

Main endpoint groups:

  • schema
  • submission
  • upload
  • resolve
  • draft
  • management

For scoped tenant/context URLs, use formforge.http.scoped_routes.

Common Commands

php artisan formforge:list
php artisan formforge:describe contact
php artisan formforge:http:routes
php artisan formforge:http:options
php artisan formforge:sync

Full Documentation

Use the full docs for setup patterns, scoped routes, policies, automation resolvers, exports, and GDPR:

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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