tp升级

先切换到你的项目根目录下面,然后执行下面的命令进行更新:

tp升级_第1张图片

# 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

你可能感兴趣的:(php和mysqlweb开发,php,sql)