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

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

muffeen/url-status
==================

Check or ping urls for http response/status codes.

1.0.0(3y ago)4292MITPHPPHP ^5.4 || ^7.0 || ^8.0CI failing

Since Dec 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mrethical/url-status)[ Packagist](https://packagist.org/packages/muffeen/url-status)[ Docs](https://github.com/mrethical/url-status)[ RSS](/packages/muffeen-url-status/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (6)Used By (0)

URL Status Code Checker
=======================

[](#url-status-code-checker)

This package can be used to retrieve http status code of a particular url, as well as its headers.

- Easy to use.
- Lightweight, no dependencies.
- Can be configured easily with curl options.

Requirements
------------

[](#requirements)

This package only requires php curl and json extensions. PHP requirement is 5.4+.

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

[](#installation)

Add `muffeen/url-status` as a require dependency in your `composer.json` file:

```
composer require muffeen/url-status

```

Usage
-----

[](#usage)

Refer to the example below:

```
use Muffeen\UrlStatus\UrlStatus;

$urlStatus = UrlStatus::get('http://www.example.com');
$httStatusCode = $urlStatus->getStatusCode();
$responseHeaders = $urlStatus->getResponseHeaders();
```

Extend your request by using curl options constants. The example below show how can you set a user agent for your request.

```
use Muffeen\UrlStatus\UrlStatus;

$urlStatus = UrlStatus::get('http://www.example.com', array(
    CURLOPT_USERAGENT => '',
));
$httStatusCode = $urlStatus->getStatusCode();
$responseHeaders = $urlStatus->getResponseHeaders();
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Total

5

Last Release

1254d ago

Major Versions

0.2.0 → 1.0.02023-01-16

PHP version history (3 changes)0.1.0PHP &gt;=5.5.0

0.2.0PHP &gt;=5.3

1.0.0PHP ^5.4 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/101b4e810811210fadff6df469e20d12adf6b7572d80afbef3a3f01659dd6749?d=identicon)[mrethical](/maintainers/mrethical)

---

Top Contributors

[![mrethical](https://avatars.githubusercontent.com/u/54579632?v=4)](https://github.com/mrethical "mrethical (18 commits)")

---

Tags

linkphppingstatus-codeurlurlphplinkstatus codeping

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[duzun/hquery

An extremely fast web scraper that parses megabytes of HTML in a blink of an eye. No dependencies. PHP5+

361159.6k5](/packages/duzun-hquery)[fsasvari/laravel-trailing-slash

The package that adds redirection with trailing slash to Laravel framework.

61169.6k](/packages/fsasvari-laravel-trailing-slash)[acamposm/ping

Ping uses the ICMP protocol's mandatory ECHO\_REQUEST datagram to elicit an ICMP ECHO\_RESPONSE from a host or gateway.

5622.6k](/packages/acamposm-ping)[linkeys/signed-url

Enhanced signed URLs for Laravel, including attaching data, click limits and expiry.

2263.1k1](/packages/linkeys-signed-url)[josantonius/url

PHP library to access URL information.

123.3k2](/packages/josantonius-url)

PHPackages © 2026

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