PHPackages                             zatxm/yrequest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. zatxm/yrequest

ActiveLibrary[HTTP &amp; Networking](/categories/http)

zatxm/yrequest
==============

PHP's curl simply encapsulates requests and supports requests libraries similar to python to support session context

2.0.0(9mo ago)13341MITPHPPHP &gt;=8.0

Since Dec 2Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/zatxm/yrequest)[ Packagist](https://packagist.org/packages/zatxm/yrequest)[ RSS](/packages/zatxm-yrequest/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (1)

yrequest
========

[](#yrequest)

yrequest是php的curl简单封装请求，支持类似python的requests库支持session上下文关联请求，重定向也支持此功能，支持并发请求，支持原生模拟浏览器TLS/JA3指纹的验证

使用说明
----

[](#使用说明)

- 安装

    composer require zatxm/yrequest (2.0+版本要求php&gt;=8.0)
- 支持原生模拟浏览器TLS/JA3指纹的验证
    要开启此功能，前往[curl-impersonate](https://github.com/lwthiker/curl-impersonate)下载安装，最简单的就是下载编译号的二进制包直接放到可以直接运行的目录如/usr/local/bin
    $option\['cmdopt'\] = '/usr/local/bin/curl\_edge101'; //此值为curl-impersonate执行脚本位置,根据实际情况调整
    此功能会直接返回响应头部和cookie
    测试发现此功能不支持响应流式持续返回数据，会一次性返回数据
- 简单的通信请求

    ```
