# thinkphp6-base-tools **Repository Path**: iyfish/thinkphp6-base-tools ## Basic Information - **Project Name**: thinkphp6-base-tools - **Description**: 基于thinkphp6项目的基础工具 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-10-14 - **Last Updated**: 2023-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # base-tools #### 介绍 - 基于`thinkphp6`的项目基础工具 #### 软件架构 - php环境 8.0+ #### 安装教程 1. 将git仓库地址作为`composer`源,需要在项目`composer.json`文件中添加如下代码 ``` php { ... "repositories": [ { "type": "vcs", "url": "git@gitee.com:myAcount/thinkphp6-base-tools.git" // ssh链接需要先将 `ssh-key` 添加到仓库账号内 // 也可以使用 `https` 链接 } ], "require": { ... "iyfish/base-tools": "dev-master" // `dev-master` 为最新版本,也可以在仓库中添加 `tag`,然后指定 `tag` 版本号 } ... } ``` 2. 命令空间为 `iyfish` 指向 `src` 目录,`src` 目录内文件命名空间遵循 PSR - 4 规范 #### 异常接管 - 在项目 `provider.php` 文件中重写异常绑定 ` 'think\exception\Handle' => \iyfish\exception\SimplifyExceptionHandle::class`