PHPackages                             palmtree/curl - 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. palmtree/curl

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

palmtree/curl
=============

Curl component for Palmtree PHP

v2.0.0(6y ago)117MITPHPPHP &gt;=7.1

Since Jun 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/palmtreephp/curl)[ Packagist](https://packagist.org/packages/palmtree/curl)[ RSS](/packages/palmtree-curl/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (10)Used By (0)

🌴 Palmtree Curl
===============

[](#palm_tree-palmtree-curl)

[![License](https://camo.githubusercontent.com/8f1c724a83462990aac60c45b6ef3e4d97b6a76415c5892823eba597845a5e90/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70616c6d747265652f6375726c2e737667)](LICENSE)[![Travis](https://camo.githubusercontent.com/9465c19c843ed4790f3b916b059ae0df024cc06c2ea5efa06e48667fa1674d68/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f70616c6d747265657068702f6375726c2e737667)](https://travis-ci.org/palmtreephp/curl)[![Scrutinizer](https://camo.githubusercontent.com/6055f181e7debb937131648e6d4ab95e7db26d0a6492da9418f640c1b6068fd8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f70616c6d747265657068702f6375726c2e737667)](https://scrutinizer-ci.com/g/palmtreephp/curl/)[![Code Coverage](https://camo.githubusercontent.com/0f91f96521de3d7ac7b1173d3d47a9016d17aa0640fefe50276c058bdd1e3e79/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70616c6d747265657068702f6375726c2f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/palmtreephp/curl/)

A PHP cURL wrapper to make HTTP requests easier.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1

Installation
------------

[](#installation)

Use composer to add the package to your dependencies:

```
composer require palmtree/curl
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

You can use the static `getContents` method if you just want to retrieve a response body from a URL:

```
