php-curl:简单PHP curl包装类

时间:2021-05-25 18:19:01
【文件属性】:
文件名称:php-curl:简单PHP curl包装类
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-25 18:19:01
PHP PHP的卷曲 用于PHP的curl功能的最小的OOP包装器。 请注意,这并不意味着是高级抽象。 您仍然应该知道“纯PHP” curl的工作原理,需要了解curl选项的设置,还需要了解一些HTTP基础知识。 如果您正在寻找更用户友好的抽象,请查看 。 安装 $ composer require anlutro/curl 用法 $ curl = new anlutro\cURL\cURL; $ response = $ curl -> get ( 'http://www.google.com' ); // easily build an url with a query string $ url = $ curl -> buildUrl ( 'http://www.google.com' , [ 's' => 'curl' ]); $ response = $ curl -> get
【文件预览】:
php-curl-master
----src()
--------cURLException.php(789B)
--------Response.php(4KB)
--------Laravel()
--------cURL.php(8KB)
--------Request.php(9KB)
----.travis.yml(174B)
----LICENSE(1KB)
----phpunit.xml(686B)
----README.md(4KB)
----run-tests.sh(524B)
----tests()
--------functional()
--------unit()
--------server()
----.gitignore(23B)
----composer.json(579B)

网友评论