kaz29 / cakephp-ts-export-plugin
CakePHP 的 TsExport 插件
1.0.2
2022-03-18 06:46 UTC
Requires
- php: >=7.2
- cakephp/cakephp: ^4.0
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-09-18 12:25:57 UTC
README
一个命令,用于输出 CakePHP 实体的 TypeScript 接口。
安装
您可以使用 composer 将此插件安装到您的 CakePHP 应用程序中。
安装 composer 包的推荐方法是
composer require --dev kaz29/cakephp-ts-export-plugin
用法
bin/cake export_entity --all
示例
bin/cake export_entity Users
/**
* User entity interface
*/
export interface User {
id: number
name: string
email: string
password: string
created?: string
modified?: string
}
作者
Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29
许可协议
CakePHP 的 TsExport 插件采用 MIT 许可协议 - 详细信息请参阅 LICENSE 文件