composer

是 PHP 用来管理依赖(dependency)关系的工具。你能够在本身的项目中声明所依赖的外部工具库(libraries),Composer 会帮你安装这些依赖的库文件。

经过composer安装的类库都放在vendor目录下,也可经过composer安装tp框架,其做用是能够方便对类库和框架的随时更新,同时还能够解决依赖关系php

 安装compsoer不作过多的赘述了...thinkphp

安装thinkphp5

composer create-project topthink/think whatever_you_like_name  --prefer-dist

更新thinkphp5

composer update

安装扩展

在tp中咱们缺啥?看看tp官方给提供了啥标配 助手函数,image操做,验证码,单元测试之类的,这哪够啊。json

我须要更强大的包,但我不知道叫啥,该上哪找? 这里! 进去搜就好了。 好,搜出来了微信

riverslei/payment 集成支付宝、微信支付等流行的支付接口,后续会持续跟进中
composer require riverslei/payment

执行完了,就装上了。检查一下你的project/composer.json文件,留神到require部分,会相似这样composer

"require": {
        "php": ">=5.4.0",
        "topthink/framework": "~5.0.0",
        "topthink/think-captcha": "1.*",
        "topthink/think-migration": "1.*",
        "topthink/think-mongo": "1.*",
        "topthink/think-queue": "1.*",
        "topthink/think-image": "1.*"
    },

 一些字体文件 快去吧,嘻嘻框架

相关文章
相关标签/搜索