承接 balpom/guzzle-downloader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

balpom/guzzle-downloader

最新稳定版本:v1.1.1

Composer 安装命令:

composer require balpom/guzzle-downloader

包简介

Downloads the contents of the specified URI (or file).

README 文档

README

Simple realisation of Balpom\UniversalDownloader\PSR18DownloadInterface based on Guzzle PHP HTTP client.

This downloader is a simple realisation of PSR18DownloadInterface from balpom/universal-downloader, based on Guzzle PHP HTTP client (guzzle/guzzle; see more information on https://guzzlephp.org).

Requirements

  • PHP >= 8.1

Installation

Using composer (recommended)

composer require balpom/guzzle-downloader

Guzzle downloader usage sample

$downloader = new \Balpom\GuzzleDownloader\Downloader();
$downloader = $downloader->get('https://ipmy.ru/ip');
$result = $downloader->result();
echo $result ->code() . PHP_EOL; // Must be 200.
echo $result ->content() . PHP_EOL; // Must be your IP.
echo $result ->mime() . PHP_EOL; // Must be "text/html".

Method "response()" return PSR7 Response (Psr\Http\Message\RequestInterface: https://www.php-fig.org/psr/psr-7/).

print_r($result->response());

Opportunities for extension

Protected method "downloader()" return Balpom\UniversalDownloader\Downloader, which created into constructor of Downloader.php. And protected method client() return GuzzleHttp\Client (which also created into constructor of Downloader.php).

License

MIT License See LICENSE.MD

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固