<p style="font-family: "PingFang SC"; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">mac下安装composer,macos系统下全局安装composer,composer是 PHP 用来管理依赖关系的工具。你可以在自己的项目中声明所依赖的外部工具库,Composer 会帮你安装这些依赖的库文件。</p><p style="font-family: "PingFang SC"; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"><strong>MacOS下安装composer方法:</strong></p><p style="font-family: "PingFang SC"; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">1、打开终端Terminal,执行如下命令:</p><pre class="brush:ps;toolbar:false" style="background-color: rgb(255, 255, 255);">brew install composer</pre><p style="font-family: "PingFang SC"; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: "Microsoft Yahei", 微软雅黑, arial, 宋体, sans-serif; text-align: justify;"></span>2、安装完毕之后,输入 composer 命令可查看是否安装成功;</p><p style="font-family: "PingFang SC"; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">3、如果看到如下界面则表示composer安装成功。</p><p style="font-family: "PingFang SC"; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255); text-align: center;"><img src="/upload/content/20181211/1544458172815622.png" title="mac下安装composer,macos系统下全局安装composer" alt="mac下安装composer,macos系统下全局安装composer" width="636" height="338"/><img src="/article/20180708/76e6e289cf15a5e389bc3a7449449f4b.png" title="" alt="" width="550" height="300"/></p><p style="font-family: "PingFang SC"; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">新手 composer 一枚,以上仅为学习mac下安装composer,macos系统下全局安装composer过程中记录的,如有问题或者有关注的可以加微信共同讨论一下!</p><p><br/></p>