composer

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

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

 安装compsoer不做过多的赘述了...

安装thinkphp5

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

更新thinkphp5

composer update

安装扩展

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

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

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

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

"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.*"
    },

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

posted @ 2018-04-06 18:05  千秋伟业  阅读(248)  评论(0编辑  收藏  举报