承接 cnd-api-maker/symfony 相关项目开发

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

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

cnd-api-maker/symfony

最新稳定版本:v0.1.5

Composer 安装命令:

composer require cnd-api-maker/symfony

包简介

README 文档

README

# cnd-api-maker/symfony

Symfony integration for **Cnd API Maker**.

This package builds on top of `cnd-api-maker/core` and provides:
- Symfony Bundle (service registration + config)
- Console commands
- Symfony-specific generators (API Platform resources, entities, fixtures/tests… depending on enabled modules)

## Requirements
- PHP 8.2+
- Symfony 6.4 / 7.x
- `cnd-api-maker/core`
- (optional) `api-platform/core` if you generate API Platform resources

## Install

### Public install (Packagist)
```bash
composer require cnd-api-maker/symfony

Local dev install (monorepo path)

In your Symfony app composer.json:

{
  "repositories": [
    { "type": "path", "url": "../cnd-api-maker/packages/cnd-api-maker/core" },
    { "type": "path", "url": "../cnd-api-maker/packages/cnd-api-maker/symfony" }
  ],
  "require": {
    "cnd-api-maker/symfony": "*"
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}

Then:

composer update cnd-api-maker/core cnd-api-maker/symfony

Usage

1) Create a JDL file

Create a .jdl file describing your entities and relationships.

Example: example.jdl

entity Employee {
  firstName String required
  lastName String required
  email String
}

entity Ticket {
  title String required
}

relationship OneToMany {
  Employee to Ticket{employee}
}

You can build JDL visually with JDL Studio:

Generate from JDL

php bin/console cnd:api-maker:generate --file=example.jdl

Common options (depending on your implementation):

  • --force overwrite generated files
  • --dry-run preview without writing
  • --module=... generate into a specific module/namespace (if supported)

4) Database + tests

If you generate Doctrine entities/migrations:

php bin/console doctrine:migrations:migrate

Run tests:

php bin/phpunit

Generated output (typical)

Depending on enabled generators and features, you may get:

  • API Platform resources (PHP attributes)
  • Doctrine entities + migrations
  • DTOs / processors / providers
  • Security/RBAC scaffolding
  • Tests

Check your output folders (commonly src/, migrations/, tests/).

License

See composer.json.

::contentReference[oaicite:0]{index=0}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固