项目作者: sb15

项目描述 :
Simple PHP cUrl client
高级语言: PHP
项目地址: git://github.com/sb15/php-curl-client.git
创建时间: 2019-04-15T20:16:44Z
项目社区:https://github.com/sb15/php-curl-client

开源协议:MIT License

下载


PHP cUrl client

Latest Version
Build Status
Total Downloads
License
PHP Versions Supported

  1. $client = new \Sb\Curl\Client();
  2. $client->setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0');
  3. $client->setDebug();
  4. $response = $client->get('https://httpbin.org/get');
  5. echo $client->getResponseCode() . "\n";
  6. echo $response . "\n";
  7. echo $client->getTrace() . "\n";

💽 Installing

  1. composer require sb15/php-curl-client