PHPackages                             vzool/url - 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. vzool/url

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

vzool/url
=========

A Simple RESTful HTTP Client Library using file\_get\_contents only

v0.10(7y ago)013MITPHPPHP &gt;=5.4

Since Sep 6Pushed 7y ago2 watchersCompare

[ Source](https://github.com/vzool/URL)[ Packagist](https://packagist.org/packages/vzool/url)[ RSS](/packages/vzool-url/feed)WikiDiscussions master Synced 2mo ago

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

A Simple RESTful HTTP Client Library using `file_get_contents` only
-------------------------------------------------------------------

[](#a-simple-restful-http-client-library-using-file_get_contents-only)

[![Latest Stable Version](https://camo.githubusercontent.com/e184444b41473b21606d9ec2ddab1ee68068ea16241c23826d4808c9df497cde/68747470733a2f2f706f7365722e707567782e6f72672f767a6f6f6c2f55524c2f76657273696f6e)](https://packagist.org/packages/vzool/URL)[![License](https://camo.githubusercontent.com/0df1593166738a9f534ef66c93d68517902e76ad5e5e3fac2874c417176c2c3f/68747470733a2f2f706f7365722e707567782e6f72672f767a6f6f6c2f55524c2f6c6963656e7365)](https://packagist.org/packages/vzool/URL)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/979edd05dfd29c56327530a1201f26454b4508e0666e2e256a46f9687c9441ab/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f767a6f6f6c2f55524c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vzool/URL/badges/quality-score.png?b=master)[![Build Status](https://camo.githubusercontent.com/8b9652b0c3ec975fdee9514f42db3e9ca5057a5d8b633ea751e4d68772d3baa8/68747470733a2f2f7472617669732d63692e6f72672f767a6f6f6c2f55524c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vzool/URL)

### Install

[](#install)

```
composer require vzool/url
```

### Usage

[](#usage)

```
require_once __DIR__.'/vendor/autoload.php';

use vzool\URL\URL;

$http = new URL('https://jsonplaceholder.typicode.com');

// to GET

$result = $http->GET('/posts/1');

// to POST

$result = $http->POST('/posts', [
  "title" => "Agreement",
  "body" => "Ha ha ha",
  "author" => "Aziz",
]);

// to PUT

$result = $http->PUT('/posts/1', [
  "title" => "Agreement #2",
]);

// to DELETE

$result = $http->DELETE('/posts/1');

// or

$result = $http->delete('/posts/1');

// to get result

print_r($result->content()); // returns stdClass objects :)
print_r($result->toArray()); // returns array
print_r($result->toJson());  // returns raw response, I'm a JSON Patriot ;)
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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 ~0 days

Total

10

Last Release

2805d ago

PHP version history (2 changes)v0.01PHP &gt;=5.4

v0.07PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9e5287358c59c776ad8b32d5ff9669f23320d091ff47e466cbb72e46c608b6e?d=identicon)[vzool](/maintainers/vzool)

---

Top Contributors

[![vzool](https://avatars.githubusercontent.com/u/4952736?v=4)](https://github.com/vzool "vzool (22 commits)")

---

Tags

http-clientrestful-client

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

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

2.8k73.3M319](/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.8M293](/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)
