PHPackages                             chasegiunta/craft-http - 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. chasegiunta/craft-http

ActiveCraft-plugin[HTTP &amp; Networking](/categories/http)

chasegiunta/craft-http
======================

Simply return the http status of a url

013[1 PRs](https://github.com/chasegiunta/craft-http/pulls)PHP

Since Jan 17Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

HTTP plugin for Craft CMS 3.x
=============================

[](#http-plugin-for-craft-cms-3x)

Simply return the HTTP status of an url

[![Screenshot](resources/img/plugin-logo.png)](resources/img/plugin-logo.png)

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

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require chasegiunta/craft-http

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for http.

Using HTTP
----------

[](#using-http)

Ensure a URL is accessible - use `http.ok`.

```
{% if craft.http.ok('http://localhost:8080/devserver/asset/live.js') %}

```

Output the status of a URL, use `http.status` &amp; `true` for second (echo http status) argument.

```
{{ craft.http.status('https://api.somewebsite.com', true) }}
{# echos "HTTP/1.0 301 Moved Permanently" #}

{% if 200 in craft.http.status('https://unpkg.com/vue@2.5.13', true) %}

{% else %}

{% endif %}

```

HTTP will follow 301/302 redirects until it hits 200.

NOTE: It's not recommended to use this in production as a fallback detect, as a slow loading URL will block your page from loading. This is mainly for *local development* use where a live dev server hosting your assets may or may not be running. Consider using a javascript fallback solution, like [Fallback.js](http://fallback.io/) in production.

Brought to you by [Chase Giunta](chasegiunta.com)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/chasegiunta-craft-http/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/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

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

Router subcomponent for Mezzio

265.3M84](/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

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

PHPackages © 2026

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