#### The PHP Package Repository
* * * * *
https://packagist.org/
* * * * *
包依赖更新
~~~
"require": {
"php": ">=5.4.0",
"topthink/framework": "^5.0",
"topthink/think-helper": "dev-master",
"topthink/think-captcha": "dev-master",
"topthink/think-queue": "dev-master",
"topthink/think-image": "dev-master",
"topthink/think-migration": "dev-master",
"kosinix/grafika": "dev-master",
"hightman/xunsearch": "*@beta",
"riverslei/payment": "~2.0"
},
~~~
`composer.json` 文件增加项目必须用到的相关依赖包之后,运行 `php composer.phar update`即可
~~~
D:\phpStudy\WWW\workspace\DragonApi>php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing topthink/think-image (dev-master cc11f68): Downloading (100%)
Writing lock file
Generating autoload files
D:\phpStudy\WWW\workspace\DragonApi>
~~~
再如:
~~~
D:\phpStudy\WWW\workspace\DragonApi>php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
- Updating topthink/framework (v5.0.12 => v5.0.13): Downloading (100%)
- Removing topthink/think-image (dev-master cc11f68)
- Installing topthink/think-image (dev-master 87c2946): Downloading (100%)
Writing lock file
Generating autoload files
D:\phpStudy\WWW\workspace\DragonApi>
~~~
- 目录
- 5.0.10环境配置
- 5.0.10控制器模型对象
- 5.0.10模型初始化
- 5.0.10定义数据对象
- 5.0.10创建数据对象data()方法
- 5.0.10创建数据对象-setAttr方法
- 5.0.10创建数据对象__set()方法
- 5.0.10查询数据对象getData()
- 实例
- 5.0.10保存数据save()方法
- 5.0.10保存数据saveAll()
- 5.0.10更新数据save()
- 5.0.10批量更新数据saveAll()
- 5.0.10删除数据delete()
- 5.0.10删除数据destroy()
- 5.0.10traits详解
- ThinkPHP 5.0 速查表
- 注释
- 环境变量配置
- Model分层
- MVC 逻辑服务数据
- Model分层及多对多关联的建立
- 控制器调用逻辑层
- Session
- 子域名session共享
- 系统错误
- 版本错误
- 返回错误
- Token令牌及身份识别
- 关联查询
- 安装
- Git安装
- Composer
- 扩展
- Composer类
- 非Composer类
- 引用第三方库
- 自定义命令行
- 计划任务
- 调试
- 调试模式
- 监听SQL
- 数据库调试
- 单元测试
- 初始化
- 控制器初始化
- 模型初始化
- 数据缓存
- 实战
- 版本升级
- 从V5.0.17升级到V5.0.18