Skip to content

Commit 5e4363c

Browse files
unknownunknown
unknown
authored and
unknown
committed
v2 版本文档
1 parent bff7360 commit 5e4363c

File tree

12 files changed

+48
-52
lines changed

12 files changed

+48
-52
lines changed

admin-business/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 后台开发,提供管理系统基础功能(首页,登录,退出登
44
keys: admin-business,phpzlc/admin-business,admin,后台
55
type: 业务组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

admin/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 后台内核,为后台业务提供底层策略,写法支持.(导航
44
keys: admin,phpzlc/admin,后台
55
type: 功能组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

auth-business/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 提供登录,修改密码等基础功能
44
keys: auth,auth-business,phpzlc/auth-business,登录,授权
55
type: 业务组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

captcha-business/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 提供生成图形验证码接口,文档。
44
keys: captcha,captcha-business,phpzlc/captcha-business,图形验证码
55
type: 业务组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title:
33
description:
44
keys:
55
language:
6-
version: v1.0
7-
status: support
6+
version: v2.0
7+
status: newest
88
sort: 0
99
links:
1010
-

document-bundle/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 用于编写接口文档,通过命令生成,在线的,可测试,可
44
keys: symfony,phpzlc,php,document,api,文档
55
type: 功能组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

phpzlc/install.markdown

+26-29
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
22
title: 安装与运行
3-
permalink: doc/install
4-
next_page: /doc/skeleton
5-
description_auto: 0
63
description: PHPZlc安装和配置
7-
tags: phpzlc,安装,配置
4+
keys: phpzlc,安装,配置
85
---
96

107
## 前言
@@ -19,42 +16,42 @@ Symfony对于相同技术提供了多种使用途径,在教程中,所呈现的
1916

2017
## 运行环境
2118

22-
**php >=7.1.3 (推荐PHP7.3)**
19+
**php >=7.2.5 (推荐PHP7.3)**
2320

2421
**mysql 5.7 +**
2522

2623
**composer 2 (推荐)**
2724

28-
## 安装Symfony4.4
25+
## 安装Symfony5.4
2926

3027
```shell
31-
composer create-project symfony/website-skeleton:"^4.4" my_project_name
28+
composer create-project symfony/website-skeleton:"^5.4" my_project_name
3229
```
3330

34-
这是Symfony4.4安装的命令,如果有疑问或者希望了解更多,请阅读官方文档[安装和设置Symfony框架](https://symfony.com/doc/4.4/setup.html)
31+
这是Symfony4.4安装的命令,如果有疑问或者希望了解更多,请阅读官方文档[安装和设置Symfony框架](https://symfony.com/doc/5.4/setup.html)
3532

3633
## PHPZlc内核安装
3734

3835
1. 启用社区食谱
3936

4037
打开项目中`composer.json`文件,将
41-
38+
4239
```js
4340
"extra": {
4441
"symfony": {
4542
"allow-contrib": false,
46-
"require": "4.4.*"
43+
"require": "5.4.*"
4744
}
4845
}
4946
```
50-
47+
5148
替换为
52-
49+
5350
```js
5451
"extra": {
5552
"symfony": {
5653
"allow-contrib": true,
57-
"require": "4.4.*",
54+
"require": "5.4.*",
5855
}
5956
}
6057
```
@@ -70,44 +67,44 @@ composer create-project symfony/website-skeleton:"^4.4" my_project_name
7067
```shell
7168
php bin/console phpzlc:install
7269
```
73-
74-
**由于 phpzlc 覆盖了一部分 symfony 内核代码,当使用过程之中由于 composer安装更新包 导致的程序报错,可以优先使用本命令进行修复。**
70+
71+
**由于 phpzlc 覆盖了一部分 symfony 内核代码,当使用过程之中由于 composer安装更新包 导致的程序报错,可以优先使用本命令进行修复。**
7572

7673
## IDE的选择和配置
7774

7875
1. 安装配置完毕有代码提示
7976

80-
IDE:[PhpStorm](https://www.jetbrains.com/phpstorm/)
77+
IDE:[PhpStorm](https://www.jetbrains.com/phpstorm/)
8178

82-
[IDE配置,Symfony工具安装配置](https://www.jetbrains.com/help/phpstorm/symfony-support.html?_ga=2.242917706.978522081.1607327290-133517331.1605767311#enabling-the-symfony-plugin-for)
79+
[IDE配置,Symfony工具安装配置](https://www.jetbrains.com/help/phpstorm/symfony-support.html?_ga=2.242917706.978522081.1607327290-133517331.1605767311#enabling-the-symfony-plugin-for)
8380

8481
2. 忽略IDE目录提交
8582

86-
找到项目根目录的`.gitignore`文件,追加
83+
找到项目根目录的`.gitignore`文件,追加
8784

8885
```text
8986
.idea
9087
.DS_Store
9188
```
92-
93-
## Vender入Git库
89+
90+
## Vender入Git库
9491
9592
1. 找到项目根目录的`.gitignore`文件,将`vendor`所在行注释或删除。
9693
9794
2. 解决git子仓库问题
98-
95+
9996
```shell
10097
rm -rf vendor/**/.git
10198
```
102-
**在 ZSH 中**
103-
99+
**在 ZSH 中**
100+
104101
```shell
105102
find vendor/ -type d -name ".git" -exec rm -rf {} \;
106103
```
107-
108-
_为避免业务组件重复安装,建议`Vender`入库。_
109-
110-
_商业环境下,`Vender`入库是个不错的决定。因为这样会让使用者和部署者减少成本。在实践中,有些服务器无法访问外网,这就导致无法完成安装。_
104+
105+
_为避免业务组件重复安装,建议`Vender`入库。_
106+
107+
_商业环境下,`Vender`入库是个不错的决定。因为这样会让使用者和部署者减少成本。在实践中,有些服务器无法访问外网,这就导致无法完成安装。_
111108
112109
## 初始化Git仓库,添加远程地址, 提交到远程仓库
113110
@@ -145,11 +142,11 @@ git push --set-upstream origin master
145142

146143
1. 开始
147144

148-
一切准备就绪之后,让我们可以正式开始吧,[项目目录与架构](/doc/skeleton)
145+
一切准备就绪之后,让我们可以正式开始吧,[项目目录与架构](/phpzlc/skeleton.markdown)
149146

150147
2. Demo(示例项目-个人博客系统)
151148

152-
[https://github.com/phpzlc/demo-blog](https://github.com/phpzlc/demo-blog)
149+
[https://github.com/phpzlc/demo-blog](https://github.com/phpzlc/demo-blog)
153150

154151

155152

platform-business/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 提供多平台管理的基础功能
44
keys: platform,platform-business,平台,phpzlc/platform-business
55
type: 业务组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

rbac-business/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: RBAC权限(RBAC-business)
44
keys: rbac,rbac-business,权限,phpzlc/rbac-business
55
type: 业务组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

snapshot-business/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 快照组件,在数据库中便捷的设置读取自定义参数
44
keys: snapshot,symfony,phpzlc,快照
55
type: 业务组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

upload-business/config.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: UploadBusiness
22
title: 上传业务(upload-business)
33
description: 提供上传文件的接口,文档。
4-
keys: 上传,upload,upload-business,phpzlc/upload-business
54
type: 业务组件
65
language:
7-
version: v1.0
8-
status: support
6+
version: v2.0
7+
status: newest
98
sort: 0
109
links:
1110
-

upload/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: 提供文件上传功能
44
keys: upload,上传,phpzlc/upload
55
type: 功能组件
66
language:
7-
version: v1.0
8-
status: support
7+
version: v2.0
8+
status: newest
99
sort: 0
1010
links:
1111
-

0 commit comments

Comments
 (0)