aristonet / entity-to-model-bundle
它将 doctrine 实体转换为 typescript 模型
v1.0.2
2023-02-17 22:09 UTC
Requires
- symfony/config: ^6.2
- symfony/console: ^6.2
- symfony/dependency-injection: ^6.2
- symfony/filesystem: ^6.2
- symfony/framework-bundle: ^6.2
- symfony/http-kernel: ^6.2
- symfony/orm-pack: ^2.3
- symfony/property-info: ^6.2
Requires (Dev)
- phpstan/phpstan: 1.10.x-dev
- psalm/plugin-phpunit: dev-master
- psalm/plugin-symfony: dev-master
- symfony/finder: ^6.2
- symfony/test-pack: ^1.1
- vimeo/psalm: ^4.12
README
Aristonet EntityToModelBundle 是将 doctrine 实体转换为 typescript 模型的最快方式。
安装
要安装库,请使用Composer,PHP 包管理器
composer require aristonet/entity-to-model-bundle
用法
php bin/console convert:entitytomodel
php bin/console convert:entitytomodel --modelDir=path/to/models
php bin/console convert:entitytomodel --className=Order
php bin/console convert:entitytomodel --className=Order --modelDir=path/to/models
作者
Niculae Niculae