composer create-project hyperf/component-creator
The utilities for Hyperf
- php8.3+
$ /lib/path/composer require atellitech/utils-hyperf
This generator is used to create model class by particular table name.
$ php bin/hyperf.php at:gen:model {table} --namespace={custom namespace} --path={generated file path} --connection={db profile name}
- table Table name
- connection Database component id
- path Store path of model class file
- namespace Namespace of model class