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 1mo 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 32% 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

2624d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03980dfe42687585f42f9d0e17c5af804c152e359b081b882d2bb55dad3c1c2d?d=identicon)[elboza](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M315](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M290](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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