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

Abandoned → [assasin/curl-request](/?search=assasin%2Fcurl-request)Library[HTTP &amp; Networking](/categories/http)

assasin/curl-request
====================

Send your self-defined HTTP request to somewhere,and you do not care anything else

V1.0.0(5y ago)23MITPHPPHP &gt;=5.3

Since Nov 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/assasin0308/curl-request)[ Packagist](https://packagist.org/packages/assasin/curl-request)[ Docs](https://github.com/assasin0308/curl-request)[ RSS](/packages/assasin-curl-request/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Curl-request
============

[](#curl-request)

Send your self-defined HTTP request to somewhere,and you do not care anything else.

### How to install ?

[](#how-to-install-)

```
composer require assasin/curl-request
```

```
{
    "require": {
        "assasin/curl-request": "^1.0"
    }
}
```

### What happened with this library ?

[](#what-happened-with-this-library-)

```
Curl-request is a PHP-based Http library.
If you want to send a GET,POST,PUT,DELETE Http request,and enble cooke,enable gzip,set user-Agent,set referer,set header,set proxy and so on ...... all of these,all of fit 100%.
```

### How to use use it ?

[](#how-to-use-use-it-)

```
$result = RequestUrl::getInstance()
        ->enableCookie('testCookiefile.tmp')
        ->enableGzip(true)
        ->setUserAgent('Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36')
        ->setReferer('https://www.baidu.com')
        ->setTimeout(10)
        ->setConnectTimeout(5)
        ->setHeaders(['Accept' => 'application/json'])
        ->setParams(['name' => 'admin', 'password' => '123456'])
        ->setProxy('127.0.0.1', 1080)
        ->post('https://www.baidu.com/user/login');

$result = RequestUrl::getInstance()->setParams(['key' => 'value'])->post('https://www.baidu.com');
$result = RequestUrl::getInstance()->get('https://www.example.com');

var_dump($result['body']);
// string '[...]'... (length=1270)

var_export($result['header']);
/*
'HTTP/2 200
cache-control: max-age=604800
content-type: text/html; charset=UTF-8
date: Tue, 13 Aug 2019 10:26:21 GMT
etag: "1541025663+ident"
expires: Tue, 20 Aug 2019 10:26:21 GMT
last-modified: Fri, 09 Aug 2013 23:54:35 GMT
server: ECS (dcb/7F38)
vary: Accept-Encoding
x-cache: HIT
content-length: 1270
'
*/

$headers = RequestUrl::getInstance()->parseHeader($result['header']);
var_export($headers);
/*
[
  'cache-control' => 'max-age=604800',
  'content-type' => 'text/html; charset=UTF-8',
  'date' => 'Tue, 13 Aug 2019 10:26:21 GMT',
  'etag' => '"1541025663+ident"',
  'expires' => 'Tue, 20 Aug 2019 10:26:21 GMT',
  'last-modified' => 'Fri, 09 Aug 2013 23:54:35 GMT',
  'server' => 'ECS (dcb/7F38)',
  'vary' => 'Accept-Encoding',
  'x-cache' => 'HIT',
  'content-length' => '1270',
]
*/

var_export($result['info']);
/*
[
  'url' => 'https://www.example.com',
  'httpCode' => 200,
  'contentType' => 'text/html; charset=UTF-8',
  'contentTypeDownload' => 1270.0,
  'sizeDownload' => 1270.0,
  'errno' => 0,
  'error' => '',
  'proxy' => false,
]
*/
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2019d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32beb2e919c2e8af701d0d9eacb0d12bdd29518f7f639ff312206a6ef890c8de?d=identicon)[assasin](/maintainers/assasin)

---

Top Contributors

[![assasin0308](https://avatars.githubusercontent.com/u/36221153?v=4)](https://github.com/assasin0308 "assasin0308 (2 commits)")

---

Tags

httpgetpostdeleteput

### Embed Badge

![Health badge](/badges/assasin-curl-request/health.svg)

```
[![Health](https://phpackages.com/badges/assasin-curl-request/health.svg)](https://phpackages.com/packages/assasin-curl-request)
```

###  Alternatives

[elementaryframework/water-pipe

URL routing framework and requests/responses handler for PHP

254.6k4](/packages/elementaryframework-water-pipe)[phpgt/fetch

Asynchronous HTTP client with promises.

3724.0k3](/packages/phpgt-fetch)

PHPackages © 2026

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