kaz29 / cakephp-ts-export-plugin
TsExport plugin for CakePHP
Installs: 1 591
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=7.2
- cakephp/cakephp: ^4.0
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-18 12:52:38 UTC
README
A command to output the typescript interface for CakePHP entities.
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require --dev kaz29/cakephp-ts-export-plugin
Usage
bin/cake export_entity --all
Example
bin/cake export_entity Users
/**
* User entity interface
*/
export interface User {
id: number
name: string
email: string
password: string
created?: string
modified?: string
}
Author
Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29
License
TsExport plugin for CakePHP is licensed under the MIT License - see the LICENSE file for details