tp升級

先切換到你的項目根目錄下面,然後執行下面的命令進行更新:

# php think version
v5.1.23
# composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 2 updates, 0 removals
  - Installing topthink/think-installer (v2.0.0): Loading from cache
  - Updating psr/log (1.0.2 => 1.1.0): Downloading (100%)         
  - Updating monolog/monolog (1.23.0 => 1.24.0): Downloading (100%)         
  - Installing topthink/framework (v5.1.30): Downloading (100%)         
Writing lock file
Generating autoload files
# php think version
v5.1.30 LTS

一步操作,內核直接升級到最新的5.1.30

或者單獨針對框架進行升級

# composer update topthink/framework
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章