定制 keshavjha/curdder 二次开发

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

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

keshavjha/curdder

Composer 安装命令:

composer require keshavjha/curdder

包简介

A Laravel CRUD wizard that inspects database tables, manages joins, and generates CRUD config inside the host app.

README 文档

README

Curdder is a lightweight PHP CRUD generator.

It can:

  • inspect an existing database schema
  • generate a CRUD-ready config for a Laravel app
  • accept explicit table and foreign-key join instructions
  • provide a Laravel wizard for selecting tables, joins, and creating tables

Install

composer require curdder/curdder

Generate from a database

php vendor/bin/curdder generate \
  --dsn="mysql:host=127.0.0.1;dbname=app;charset=utf8mb4" \
  --user=root \
  --password=secret \
  --output=./storage/app \
  --mode=laravel

Limit tables

php vendor/bin/curdder generate \
  --dsn="sqlite:/path/to/database.sqlite" \
  --table=users \
  --table=posts \
  --output=./storage/app

Explicit joins

You can define joins when the database does not expose the relationship the way you want.

php vendor/bin/curdder generate \
  --dsn="mysql:host=127.0.0.1;dbname=app" \
  --join="posts.user_id=users.id:name" \
  --join="posts.category_id=categories.id:title"

Join rule format:

table.column=related_table.related_column:label_column

Spec file

Use a JSON or PHP spec file when you want to describe tables, labels, and relations in one place.

{
  "name": "Blog Admin",
  "tables": [
    "users",
    {
      "name": "posts",
      "label": "Posts",
      "search_columns": ["title", "slug"]
    }
  ],
  "relations": [
    {
      "table": "posts",
      "column": "user_id",
      "references": "users.id",
      "label_column": "name"
    }
  ]
}

Then run:

php vendor/bin/curdder generate \
  --dsn="mysql:host=127.0.0.1;dbname=app" \
  --spec=./crudder.json \
  --output=./storage/app

Use in Laravel

Install the package in your Laravel app and open:

  • http://localhost:2222/crudder
  • http://localhost:2222/crudder/tables/create

The package stores the generated config in storage/app/crudder.php by default.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固