Download the PHP package jian1098/tp-make-service without Composer
On this page you can find all versions of the php package jian1098/tp-make-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jian1098/tp-make-service
More information about jian1098/tp-make-service
Files in jian1098/tp-make-service
Download jian1098/tp-make-service
More information about jian1098/tp-make-service
Files in jian1098/tp-make-service
Vendor jian1098
Package tp-make-service
Short Description thinkphp框架命令行创建Service Class(即服务层,基于controller-service-repository目录架构)
License Apache-2.0
Package tp-make-service
Short Description thinkphp框架命令行创建Service Class(即服务层,基于controller-service-repository目录架构)
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package tp-make-service
tp-make-service
thinkphp框架命令行创建Service Class(即服务层,基于controller-service-repository目录架构)
如何使用
-
1.安装扩展
-
2.注册命令
- Thinkphp5
在
application/command.php
文件中添加一行- Thinkphp6+
在
config/console.php
文件中添加一行注意事项:该命令会替换tp6框架自带的
make:service
命令,如果不想替换,可以将上面的make:service
改为其他你喜欢的指令配置完后,在命令行执行
php think
命令,可以看到增加了make:service
命令 -
3.命令行创建文件
执行上面的命令将创建文件
application/common/service/TestService.php
(thinkphp5)或app/service/TestService.php
(thinkphp6+),内容如下创建其他的service以此类推
All versions of tp-make-service with dependencies
PHP Build Version
Package Version
The package jian1098/tp-make-service contains the following files
Loading the files please wait ....