PHPackages                             httpurl/httpurl - 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. httpurl/httpurl

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

httpurl/httpurl
===============

easy http url in PHP. (get, post, put, delete for both 'curl' and 'file\_get\_content')

0.0.2(7y ago)018BeerwarePHP

Since Apr 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/elboza/HttpUrl)[ Packagist](https://packagist.org/packages/httpurl/httpurl)[ RSS](/packages/httpurl-httpurl/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

HttpUrl
=======

[](#httpurl)

### easy http url in PHP

[](#easy-http-url-in-php)

```
set_transfer_mode ~~> 'curl' | 'fopen'
set_post_encode   ~~> 'json' | 'form'
set_show_headers  ~~>  true  |  false

```

- `'fopen'` is the default transfer mode.
- `'form'` is the default post encodeing.
- `false` is the default show header.

```
get    ($url,$params=null,$transfer_mode=null)
post   ($url,$data,$encoding=null,$transfer_mode=null,$params=null)
put    ($url,$data,$encoding=null,$transfer_mode=null,$params=null)
delete ($url,$data,$encoding=null,$transfer_mode=null,$params=null)

```

- `$data` has to be an array.

example
-------

[](#example)

`test.php` file:

```

```

run:

- `php -S localhost:3000 -r .`
- `composer install`

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~320 days

Total

2

Last Release

2677d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4483061?v=4)[elboza](/maintainers/elboza)[@elboza](https://github.com/elboza)

---

Top Contributors

[![elboza](https://avatars.githubusercontent.com/u/4483061?v=4)](https://github.com/elboza "elboza (13 commits)")

### Embed Badge

![Health badge](/badges/httpurl-httpurl/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M85](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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