Laravel 5中的安装钳 [英] Installation Guzzle in Laravel 5

查看:70
本文介绍了Laravel 5中的安装钳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将Guzzle安装到Laravel 5中? 我正在为项目使用laravel,但是我需要像guzzle这样的库才能使我在laravel中使用curl变得容易.任何机构都能帮忙吗?

how to Install Guzzle into Laravel 5? I'm using laravel for my project, but I need library like guzzle to made me easy using curl in laravel. Any Body can help?

推荐答案

打开一个终端,更改为您的laravel项目根目录并键入

Open a terminal, change into your laravel projects root dir and type

composer require guzzlehttp/guzzle

或者,您可以添加

"guzzlehttp/guzzle":"*"

进入您的composer.json文件的require部分,然后运行composer更新.

to your composer.json file's require section and run composer update.

这篇关于Laravel 5中的安装钳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆