PHPackages                             cjrasmussen/web-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. cjrasmussen/web-request

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

cjrasmussen/web-request
=======================

Simple functions for making web requests

1.1.0(9mo ago)042MITPHPPHP &gt;=7.4

Since Jun 11Pushed 9mo agoCompare

[ Source](https://github.com/cjrasmussen/WebRequest)[ Packagist](https://packagist.org/packages/cjrasmussen/web-request)[ Docs](https://cjr.dev)[ RSS](/packages/cjrasmussen-web-request/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Image
=====

[](#image)

Simple functions for making some specialized web requests.

Usage
-----

[](#usage)

```
use cjrasmussen\WebRequest\WebRequest;

// GET THE CONTENTS OF A FILE
$file_contents = WebRequest::getFileContents('https://cjr.dev/feed/');

// GET RESPONSE HEADER FOR A REQUEST
$file_contents = WebRequest::getResponseHeader('https://cjr.dev/');
```

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

[](#installation)

Simply add a dependency on cjrasmussen/web-request to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require cjrasmussen/web-request
```

Although it's recommended to use Composer, you can actually include the file(s) any way you want.

License
-------

[](#license)

WebRequest is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance56

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Total

2

Last Release

292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0225f44837a665c8a143afa50a34a406a769c523dba31e4cdf73fd0530dede45?d=identicon)[cjrasmussen](/maintainers/cjrasmussen)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/cjrasmussen-web-request/health.svg)

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

###  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)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

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

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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