PHPackages                             codenamephp/deploymentchecks.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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. codenamephp/deploymentchecks.http

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

codenamephp/deploymentchecks.http
=================================

1.0.0(2y ago)0103[1 PRs](https://github.com/codenamephp/deploymentchecks.http/pulls)Apache-2.0PHPPHP ^8.2CI passing

Since Jan 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/codenamephp/deploymentchecks.http)[ Packagist](https://packagist.org/packages/codenamephp/deploymentchecks.http)[ RSS](/packages/codenamephp-deploymentcheckshttp/feed)WikiDiscussions release Synced 1mo ago

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

deploymentchecks.http
=====================

[](#deploymentcheckshttp)

[![Packagist Version](https://camo.githubusercontent.com/3426d3af46c183fc804ee317781040e164b7bd3e8b043e2ada228bece578012b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)](https://camo.githubusercontent.com/3426d3af46c183fc804ee317781040e164b7bd3e8b043e2ada228bece578012b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)[![Packagist PHP Version Support](https://camo.githubusercontent.com/68d14a7101b5586f5238be24260798571f87e61ccc6988f9694c92f2f1930100/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)](https://camo.githubusercontent.com/68d14a7101b5586f5238be24260798571f87e61ccc6988f9694c92f2f1930100/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)[![Lines of code](https://camo.githubusercontent.com/18aef87b7cc600cf4a42386f3adf055ab7bdb8555a36e4b254b9d80cb6a4648b/68747470733a2f2f696d672e736869656c64732e696f2f746f6b65692f6c696e65732f6769746875622f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)](https://camo.githubusercontent.com/18aef87b7cc600cf4a42386f3adf055ab7bdb8555a36e4b254b9d80cb6a4648b/68747470733a2f2f696d672e736869656c64732e696f2f746f6b65692f6c696e65732f6769746875622f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)[![GitHub code size in bytes](https://camo.githubusercontent.com/b55ccbb5bfd6f0ddda350adc93df827ef08c469bcc901407ed23e87d8b40b461/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)](https://camo.githubusercontent.com/b55ccbb5bfd6f0ddda350adc93df827ef08c469bcc901407ed23e87d8b40b461/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)[![CI](https://github.com/codenamephp/deploymentchecks.http/workflows/CI/badge.svg)](https://github.com/codenamephp/deploymentchecks.http/workflows/CI/badge.svg)[![Packagist Downloads](https://camo.githubusercontent.com/f78226125f1d1d99f4b69c97721860007652e204bdf42f8fd5b5109611a71894/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)](https://camo.githubusercontent.com/f78226125f1d1d99f4b69c97721860007652e204bdf42f8fd5b5109611a71894/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)[![GitHub](https://camo.githubusercontent.com/503737c110b40022bd53f93584c7770c9f7263e556dbbcac69c535dae43d2586/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)](https://camo.githubusercontent.com/503737c110b40022bd53f93584c7770c9f7263e556dbbcac69c535dae43d2586/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64656e616d657068702f6465706c6f796d656e74636865636b732e68747470)

This package provides simple checks for http services. It can check if a service is reachable and if it returns a specific status code, response body, ...

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

[](#installation)

Easiest way is via composer. Just run `composer require codenamephp/deploymentchecks.http` in your cli which should install the latest version for you.

You should also explicitly install the `codenamephp/deploymentchecks.base` package since you will end up using it directly in almost all cases.

Usage
-----

[](#usage)

Just create checks, pass them to a collection and run them:

```
use de\codenamephp\deploymentchecks\base\Check\Collection\SequentialCheckCollection;
use de\codenamephp\deploymentchecks\base\Check\Result\Collection\ResultCollection;
use de\codenamephp\deploymentchecks\http\HttpCheckResult;
use de\codenamephp\deploymentchecks\http\RunTestsOnHttpResponse;
use de\codenamephp\deploymentchecks\http\Test\CssSelectorExists;
use de\codenamephp\deploymentchecks\http\Test\Result\HttpTestResult;
use de\codenamephp\deploymentchecks\http\Test\StatusCode;
use GuzzleHttp\Psr7\Request;

$check = new SequentialCheckCollection(new RunTestsOnHttpResponse(
  new Request('GET', 'https://localhost/test.html'),
  'Exists',
  new StatusCode(200),
),
  new RunTestsOnHttpResponse(
    new Request('GET','https://localhost/404.html'),
    'Does not exist',
    new StatusCode(404),
  ),
);

$result = $check->run();

exit($result instanceof WithExitCodeInterface ? $result->exitCode() : ($result->successful() ? DefaultExitCodes::SUCCESSFUL->value : DefaultExitCodes::ERROR->value));
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

853d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6865819?v=4)[Bastian Schwarz](/maintainers/bastianschwarz)[@bastianschwarz](https://github.com/bastianschwarz)

---

Top Contributors

[![bastianschwarz](https://avatars.githubusercontent.com/u/6865819?v=4)](https://github.com/bastianschwarz "bastianschwarz (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

### Embed Badge

![Health badge](/badges/codenamephp-deploymentcheckshttp/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)

PHPackages © 2026

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