[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8487":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":21,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},8487,"Requests","WordPress\u002FRequests","WordPress","Requests for PHP is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries.","https:\u002F\u002Frequests.ryanmccue.info\u002F",null,"PHP",3573,502,118,94,0,30.1,"Other",false,"develop",true,[23,24,25,26,27],"curl","http","http-client","php","php-curl","2026-06-12 02:01:54","Requests for PHP\n================\n\n[![CS](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Factions\u002Fworkflows\u002Fcs.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Factions\u002Fworkflows\u002Fcs.yml)\n[![Lint](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Factions\u002Fworkflows\u002Flint.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Factions\u002Fworkflows\u002Flint.yml)\n[![Test](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Factions\u002Fworkflows\u002Ftest.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Factions\u002Fworkflows\u002Ftest.yml)\n[![codecov.io](https:\u002F\u002Fcodecov.io\u002Fgh\u002FWordPress\u002FRequests\u002Fbranch\u002Fstable\u002Fgraph\u002Fbadge.svg?token=AfpxK7WMxj&branch=stable)](https:\u002F\u002Fcodecov.io\u002Fgh\u002FWordPress\u002FRequests?branch=stable)\n[![Packagist License](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fl\u002Frmccue\u002Frequests)](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Fblob\u002Fstable\u002FLICENSE)\n\nRequests is a HTTP library written in PHP, for human beings. It is roughly\nbased on the API from the excellent [Requests Python\nlibrary](https:\u002F\u002Frequests.readthedocs.io\u002Fen\u002Flatest\u002F). Requests is [ISC\nLicensed](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Fblob\u002Fstable\u002FLICENSE) (similar to\nthe new BSD license) and has no dependencies, except for PHP 5.6.20+.\n\nDespite PHP's use as a language for the web, its tools for sending HTTP requests\nare severely lacking. cURL has an\n[interesting API](https:\u002F\u002Fwww.php.net\u002Fcurl-setopt), to say the\nleast, and you can't always rely on it being available. Sockets provide only low\nlevel access, and require you to build most of the HTTP response parsing\nyourself.\n\nWe all have better things to do. That's why Requests was born.\n\n```php\n$headers = array('Accept' => 'application\u002Fjson');\n$options = array('auth' => array('user', 'pass'));\n$request = WpOrg\\Requests\\Requests::get('https:\u002F\u002Fapi.github.com\u002Fgists', $headers, $options);\n\nvar_dump($request->status_code);\n\u002F\u002F int(200)\n\nvar_dump($request->headers['content-type']);\n\u002F\u002F string(31) \"application\u002Fjson; charset=utf-8\"\n\nvar_dump($request->body);\n\u002F\u002F string(26891) \"[...]\"\n```\n\nRequests allows you to send  **HEAD**, **GET**, **POST**, **PUT**, **DELETE**, \nand **PATCH** HTTP requests. You can add headers, form data, multipart files, \nand parameters with basic arrays, and access the response data in the same way.\nRequests uses cURL and fsockopen, depending on what your system has available, \nbut abstracts all the nasty stuff out of your way, providing a consistent API.\n\n\nFeatures\n--------\n\n- International Domains and URLs\n- Browser-style SSL Verification\n- Basic\u002FDigest Authentication\n- Automatic Decompression\n- Connection Timeouts\n\n\nInstallation\n------------\n\n### Install with Composer\nIf you're using [Composer](https:\u002F\u002Fgetcomposer.org\u002F) to manage\ndependencies, you can add Requests with it.\n\n```sh\ncomposer require rmccue\u002Frequests\n```\n\nor\n```json\n{\n    \"require\": {\n        \"rmccue\u002Frequests\": \"^2.0\"\n    }\n}\n```\n\n### Install source from GitHub\nTo install the source code:\n```bash\n$ git clone git:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests.git\n```\n\nNext, include the autoloader in your scripts:\n```php\nrequire_once '\u002Fpath\u002Fto\u002FRequests\u002Fsrc\u002FAutoload.php';\n```\n\nYou'll probably also want to register the autoloader:\n```php\nWpOrg\\Requests\\Autoload::register();\n```\n\n### Install source from zip\u002Ftarball\nAlternatively, you can fetch a [tarball][] or [zipball][]:\n\n```bash\n$ curl -L https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Ftarball\u002Fstable | tar xzv\n(or)\n$ wget https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Ftarball\u002Fstable -O - | tar xzv\n```\n\n[tarball]: https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Ftarball\u002Fstable\n[zipball]: https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Fzipball\u002Fstable\n\n\n### Using a Class Loader\nIf you're using a class loader (e.g., [Symfony Class Loader][]) for\n[PSR-4][]-style class loading:\n```php\n$loader = new Psr4ClassLoader();\n$loader->addPrefix('WpOrg\\\\Requests\\\\', 'path\u002Fto\u002Fvendor\u002FRequests\u002Fsrc');\n$loader->register();\n```\n\n[Symfony Class Loader]: https:\u002F\u002Fgithub.com\u002Fsymfony\u002FClassLoader\n[PSR-4]: https:\u002F\u002Fgithub.com\u002Fphp-fig\u002Ffig-standards\u002Fblob\u002Fmaster\u002Faccepted\u002FPSR-4.md\n\n\nDocumentation\n-------------\nThe best place to start is our [prose-based documentation][], which will guide\nyou through using Requests.\n\nAfter that, take a look at [the documentation for\n`\\WpOrg\\Requests\\Requests::request()`][request_method], where all the parameters are fully\ndocumented.\n\nRequests is [100% documented with PHPDoc](https:\u002F\u002Frequests.ryanmccue.info\u002Fapi-2.x\u002F).\nIf you find any problems with it, [create a new\nissue](https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Fissues\u002Fnew)!\n\n[prose-based documentation]: https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Fblob\u002Fstable\u002Fdocs\u002FREADME.md\n[request_method]: https:\u002F\u002Frequests.ryanmccue.info\u002Fapi-2.x\u002Fclasses\u002FWpOrg-Requests-Requests.html#method_request\n\n\nTest Coverage\n-------------\n\nRequests strives to have 100% code-coverage of the library with an extensive\nset of tests. We're not quite there yet, but [we're getting close][codecov].\n\n[codecov]: https:\u002F\u002Fcodecov.io\u002Fgithub\u002FWordPress\u002FRequests\u002F\n\n\nRequests and PSR-7\u002FPSR-18\n-------------------------\n\n[PSR-7][psr-7] describes common interfaces for representing HTTP messages.\n[PSR-18][psr-18] describes a common interface for sending HTTP requests and receiving HTTP responses.\n\nBoth PSR-7 as well as PSR-18 were created after Requests' conception.\nAt this time, there is no intention to add a native PSR-7\u002FPSR-18 implementation to the Requests library.\n\nHowever, the amazing [Artur Weigandt][art4] has created a [package][requests-psr-18], which allows you to use Requests as a PSR-7 compatible PSR-18 HTTP Client.\nIf you are interested in a PSR-7\u002FPSR-18 compatible version of Requests, we highly recommend you check out [this package][requests-psr-18].\n\n[psr-7]:           https:\u002F\u002Fwww.php-fig.org\u002Fpsr\u002Fpsr-7\u002F\n[psr-18]:          https:\u002F\u002Fwww.php-fig.org\u002Fpsr\u002Fpsr-18\u002F\n[art4]:            https:\u002F\u002Fgithub.com\u002FArt4\n[requests-psr-18]: https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fart4\u002Frequests-psr18-adapter\n\n\nContribute\n----------\n\nContributions to this library are very welcome. Please read the [Contributing guidelines][] to get started.\n\n[Contributing guidelines]: https:\u002F\u002Fgithub.com\u002FWordPress\u002FRequests\u002Fblob\u002Fdevelop\u002F.github\u002FCONTRIBUTING.md\n","Requests for PHP 是一个简洁的HTTP请求库，旨在简化与其它网站的交互过程。它支持发送HEAD、GET、POST、PUT、DELETE和PATCH等HTTP请求，并允许用户轻松添加头信息、表单数据、多部分文件以及参数。该库自动处理如国际域名URL解析、浏览器风格的SSL验证、基础\u002F摘要认证、自动解压缩及连接超时等功能。其设计目标是隐藏底层复杂性（如cURL或fsockopen的具体实现），为开发者提供统一且易用的API接口。适用于需要进行Web服务调用但又不想直接面对复杂网络编程细节的各种PHP项目中。",2,"2026-06-11 03:18:15","top_language"]