### 一、下載安裝tp5
~~~
git clone https://github.com/top-think/think
git clone https://github.com/top-think/framework thinkphp
~~~
如果需要更新thinkphp框架,在thinkphp目錄下執行
~~~
git pull https://github.com/top-think/framework
~~~
composer方式安裝
~~~
composer create-project topthink/think=5.0.* tp5 --prefer-dist
~~~
#### tp插件
* 郵件
~~~
composer require phpmailer/phpmailer
~~~
### 二、基礎程序
#### 共享靜態程序,放在公共目錄
layer
jquery
jquery ui
#### 官方后臺單獨的文件,放在單獨的目錄
static/common //共享
static/admin //官方
static/agent //代理
static/member //會員
各自的二級結構
---------------/ uploads
-------------- / img
------------- / js
------------ / css
------------/ plus
### 三、入口文件
* .htaccess文件
* 開啟調試模式config
* 鏈接數據庫
* public靜態參數設置