PHPackages                             jdolba/slim-http-smoke-testing - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. jdolba/slim-http-smoke-testing

ActiveLibrary[Testing &amp; Quality](/categories/testing)

jdolba/slim-http-smoke-testing
==============================

HTTP Smoke Testing for your Slim Framework based application

v1.2.0(3y ago)7542MITPHPPHP ~7.1||~8.0

Since Jan 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jDolba/slim-http-smoke-testing)[ Packagist](https://packagist.org/packages/jdolba/slim-http-smoke-testing)[ Docs](https://github.com/jdolba/slim-http-smoke-testing)[ RSS](/packages/jdolba-slim-http-smoke-testing/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

Slim framework HTTP Smoke testing
=================================

[](#slim-framework-http-smoke-testing)

[![Latest Version on Packagist](https://camo.githubusercontent.com/19ea86c5bc689032892d973f99832f0189e281b2e8d23724731dda00bb994753/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a646f6c62612f736c696d2d687474702d736d6f6b652d74657374696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jdolba/slim-http-smoke-testing)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e5673cb3b2027683b7e61f0b91af07f616cf3ed5253243f6707785231a2b397a/68747470733a2f2f7472617669732d63692e6f72672f6a446f6c62612f736c696d2d687474702d736d6f6b652d74657374696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jDolba/slim-http-smoke-testing)[![Coverage Status](https://camo.githubusercontent.com/d38993607e190362e496c1c122d43bdae84518c9084fd8edb4988f26882c31ec/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a646f6c62612f736c696d2d687474702d736d6f6b652d74657374696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jdolba/slim-http-smoke-testing/code-structure)[![Quality Score](https://camo.githubusercontent.com/2fb353447f5e249acfef3949bcac1675966f4cb9420ddeaf2a8ca23f3e55a869/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a646f6c62612f736c696d2d687474702d736d6f6b652d74657374696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jdolba/slim-http-smoke-testing)[![Total Downloads](https://camo.githubusercontent.com/3bd97d1ba594ab7a8417da38bf1c492e7b55245c30f5b7bf40d7d621f22b29db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a646f6c62612f736c696d2d687474702d736d6f6b652d74657374696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jdolba/slim-http-smoke-testing)

This simple package will load ALL your routes from `Slim\App` and make a Request on them to receive Response to assert expected return http code.

It is not very smart or bullet-proof check, but it will simply tell you: *does it run?*.

After initial configuration it is almost maintenance-free as it checks any new routes automatically.

Inspired by [shopsys/http-smoke-testing](https://github.com/shopsys/http-smoke-testing)THANK YOU!

Install
-------

[](#install)

Via Composer

```
composer require --dev jdolba/slim-http-smoke-testing
```

This package internally uses PHPUnit to run the tests. That means that you need to setup your phpunit.xml properly.

### WARNING

[](#warning)

***`Because this package will make a real Request`******`be sure you are NOT executing this test on production db!`***

Usage
-----

[](#usage)

Create new PHPUnit test extending `\JDolba\SlimHttpSmokeTesting\SlimApplicationHttpSmokeTestCase`class and implement `setUpSmokeTestAndCallConfigure` and `customize` methods.

You can run your new test by:

```
php vendor/bin/phpunit tests/Smoke/MyAwesomeApplicationSmokeTest.php
```

[See example test class](example/tests/MyAwesomeApplicationSmokeTest.php)

### About RequestDataSet

[](#about-requestdataset)

Each your route uri + acceptable http method is represented as `\JDolba\SlimHttpSmokeTesting\RequestDataSet`so for example

```
$app = new \Slim\App();
$app->any('/', function ($request, $response, $args) {
//...
return $response;
});

```

will be interpreted as 6 independent DataSets, because Slim is using for "any":

`['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']`

you can customize passed `$request` in your test class using `customize` method. This 6 data sets will have routeName `'/'`, but

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jakub Dolba](https://github.com/jDolba)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~649 days

Total

3

Last Release

1381d ago

PHP version history (2 changes)v1.0.0PHP ~7.1

v1.1.0PHP ~7.1||~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2030cdefaeb3f8741cf7a85485564eddda4353489c26992c273c507b30b3a57e?d=identicon)[jdolba](/maintainers/jdolba)

---

Top Contributors

[![jDolba](https://avatars.githubusercontent.com/u/2221925?v=4)](https://github.com/jDolba "jDolba (5 commits)")[![vferak](https://avatars.githubusercontent.com/u/54643874?v=4)](https://github.com/vferak "vferak (5 commits)")

---

Tags

phpunitslim-frameworkslim3slimphpsmoke-testslimslim-frameworkjdolbaslim-http-smoke-testing

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jdolba-slim-http-smoke-testing/health.svg)

```
[![Health](https://phpackages.com/badges/jdolba-slim-http-smoke-testing/health.svg)](https://phpackages.com/packages/jdolba-slim-http-smoke-testing)
```

###  Alternatives

[there4/slim-test-helpers

Integration testing helpers for the Slim Framework

61255.9k2](/packages/there4-slim-test-helpers)[docler-labs/codeception-slim-module

Codeception Module for Slim framework.

13178.0k1](/packages/docler-labs-codeception-slim-module)[herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

26130.9k5](/packages/herloct-codeception-slim-module)[selective/test-traits

A collection of PHPUnit test traits

13322.3k5](/packages/selective-test-traits)[andrewdyer/slim3-mailer

Email support for the Slim Framework using Twig and Swift Mailer.

1032.7k](/packages/andrewdyer-slim3-mailer)

PHPackages © 2026

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