helloccav
V2EX  ›  PHP

请问不用 Composer 如何在 PHP 里使用 Guzzle?

  •  
  •   helloccav · Dec 6, 2016 · 3673 views
    This topic created in 3634 days ago, the information mentioned may be changed or developed.
    前几天看了一篇帖子 《 php 的爬虫经验分享》 https://www.v2ex.com/t/324309
    里面说到用 Guzzle 来抓取内容很不错,
    但是 Guzzle 需要 Composer 才能安装。
    请问不用 Composer 可以在 php 项目里 include Guzzle 吗?
    5 replies  •  2016-12-09 17:32:50 +08:00
    mzsongyan
    mzsongyan
    Dec 6, 2016
    1
    实现自动加载,注册命名空间和路径,然后就可以使用了
    MrJing1992
    MrJing1992
    Dec 6, 2016
    2
    问一句哈,为什么不用 Composer ?
    demonchang
    demonchang
    Dec 6, 2016
    3
    - -! 还是安装一下 Composer 吧。

    不用的话吧文件里面的所有 ../src/文件包含进去就行了,如果不嫌麻烦
    anewg
    anewg
    Dec 7, 2016❤️1
    4
    可以直接下 phar ,然后 include
    zencoding
    zencoding
    Dec 9, 2016
    5
    @anewg 正解
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4449 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 06:57 · PVG 14:57 · LAX 22:57 · JFK 01:57
    ♥ Do have faith in what you're doing.