PHPackages                             crazy-max/cws-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. crazy-max/cws-curl

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

crazy-max/cws-curl
==================

A flexible wrapper PHP class for the cURL extension.

1.10.2(6y ago)21.1k2MITPHPPHP &gt;=5.3.0

Since Aug 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/crazy-max/CwsCurl)[ Packagist](https://packagist.org/packages/crazy-max/cws-curl)[ Docs](https://github.com/crazy-max/CwsCurl)[ RSS](/packages/crazy-max-cws-curl/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (7)Used By (2)

[![Latest Stable Version](https://camo.githubusercontent.com/80f4644071cb3a32d6707e5a44f58879258b5175ef30549eceddf849cf3a69dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372617a792d6d61782f6377732d6375726c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crazy-max/cws-curl)[![Minimum PHP Version](https://camo.githubusercontent.com/55453b8aba1f0d2c449c2dfa58e6debd503f9d637d2e474960cea8c266371e2f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332e302d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/40f71b2cc2a2af9070c6ccd72119f44f08132369f2bd854f70f7129158467e06/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6372617a792d6d61782f4377734375726c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.com/crazy-max/CwsCurl)[![Code Quality](https://camo.githubusercontent.com/da153b0f8c03ca3658156114e8359dc8014cbc9fb83c79414fef83e821a68a1c/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f62663234383136353431303134316230613332336439616339666534393234382e7376673f7374796c653d666c61742d737175617265)](https://www.codacy.com/app/crazy-max/CwsCurl)[![Become a sponsor](https://camo.githubusercontent.com/2b64183536d3742cfdfdbe2a16c7a26ae05e6a3db44e513ff73defdeed344cc1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f722d6372617a792d2d6d61782d3138313731372e7376673f6c6f676f3d676974687562267374796c653d666c61742d737175617265)](https://github.com/sponsors/crazy-max)[![Donate Paypal](https://camo.githubusercontent.com/86518966c73798ed1c862566d92cd4cdd48152e30ab7f42fb7d5138138231d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d70617970616c2d3030343537632e7376673f6c6f676f3d70617970616c267374796c653d666c61742d737175617265)](https://www.paypal.me/crazyws)

⚠️ Abandoned project
--------------------

[](#warning-abandoned-project)

This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed.

Thanks to everyone for their valuable feedback and contributions.

About
-----

[](#about)

A flexible wrapper PHP class for the cURL extension.

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

[](#installation)

```
composer require crazy-max/cws-curl
```

And download the code:

```
composer install # or update
```

Getting started
---------------

[](#getting-started)

See `tests/test.php` file sample to help you.

Example
-------

[](#example)

[![](.res/example.png)](.res/example.png)

Methods
-------

[](#methods)

**reset** - Reset.
**process** - Start the cURL request.

**getUrl** - The URL to fetch.
**setUrl** - Set the URL to fetch.
**getMethod** - The HTTP request method.
**setDeleteMethod** - Set DELETE HTTP request method.
**setGetMethod** - Set GET HTTP request method. (default)
**setHeadMethod** - Set HEAD HTTP request method.
**setPostMethod** - Set POST HTTP request method.
**setPutMethod** - Set PUT HTTP request method.
**getParams** - Query string parameters.
**addParam** - Add a custom parameter to the cURL request.
**addOption** - Add an option for the cURL transfer.
**getTimeout** - The maximum number of seconds to allow cURL functions to execute.
**setTimeout** - Set the maximum number of seconds to allow cURL functions to execute.
**getReferer** - The contents of the "Referer: " header to be used in a HTTP request.
**setReferer** - Set the contents of the "Referer: " header to be used in a HTTP request.
**getUserAgent** - The contents of the "User-Agent: " header to be used in a HTTP request.
**setChromeUseragent** - Set the Chrome User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
**setFirefoxUseragent** - Set the Firefox User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
**setGooglebotUseragent** - Set the Googlebot User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
**setIeUseragent** - Set the Internet Explorer User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
**setOperaUseragent** - Set the Opera User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
**setUserAgent** - Set The contents of the "User-Agent: " header to be used in a HTTP request.
**getUsername** - The username for the CURLOPT\_USERPWD option.
**getPassword** - The password associated to the username for the CURLOPT\_USERPWD option.
**setAuth** - Set authentication to the cURL request with username and password.
**isRedirect** - Redirects allowed.
**setRedirect** - Set allow redirects.
**getMaxRedirect** - Maximum redirects allowed.
**setMaxRedirect** - Set the maximum redirects allowed.
**getProxyHost** - The host IP of the proxy to connect to.
**getProxyPort** - The port number of the proxy to connect to.
**getProxyType** - The proxy type CURLPROXY\_HTTP, CURLPROXY\_SOCKS4 or CURLPROXY\_SOCKS5.
**setProxy** - Set a HTTP proxy to tunnel requests through.
**getProxyAuthType** - The HTTP authentication method(s) to use for the proxy connection. Can be CURLAUTH\_BASIC or CURLAUTH\_NTLM.
**getProxyUsername** - The username for the CURLOPT\_PROXYUSERPWD option.
**getProxyPassword** - The password associated to the proxyUsername for the CURLOPT\_PROXYUSERPWD option.
**setProxyAuth** - Set a HTTP proxy authentication.

**getSession** - The current cURL session.
**getStatus** - The HTTP status code returned.
**getContent** - The content transferred.
**getInfos** - The cURL information regarding the transfer.
**getHeaderFulltext** - The header fulltext response.
**getHeaders** - The headers response.
**getError** - Get the last error.

How can I help ?
----------------

[](#how-can-i-help-)

All kinds of contributions are welcome 🙌! The most basic way to show your support is to star 🌟 the project, or to raise issues 💬 You can also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) 👏 or by making a [Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely! 🚀

Thanks again for your support, it is much appreciated! 🙏

License
-------

[](#license)

MIT. See `LICENSE` for more details.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~231 days

Recently: every ~289 days

Total

6

Last Release

2440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2ac50dd173150fc9339728d7b2b1c872b6853111b20e4569844e215f644f632?d=identicon)[crazy-max](/maintainers/crazy-max)

---

Top Contributors

[![crazy-max](https://avatars.githubusercontent.com/u/1951866?v=4)](https://github.com/crazy-max "crazy-max (19 commits)")

---

Tags

curl-functionsphptransferuser-agentcurlwrapper

### Embed Badge

![Health badge](/badges/crazy-max-cws-curl/health.svg)

```
[![Health](https://phpackages.com/badges/crazy-max-cws-curl/health.svg)](https://phpackages.com/packages/crazy-max-cws-curl)
```

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k36.3M275](/packages/rmccue-requests)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48348.5M435](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84711.1M80](/packages/smi2-phpclickhouse)[stefangabos/zebra_curl

A high performance solution for making multiple HTTP requests concurrently, asynchronously from your PHP projects using cURL

21472.0k2](/packages/stefangabos-zebra-curl)[minicli/curly

Simple Curl Client

14262.8k5](/packages/minicli-curly)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
