PHPackages                             nekofar/slim-test - 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. [Framework](/categories/framework)
4. /
5. nekofar/slim-test

ActiveLibrary[Framework](/categories/framework)

nekofar/slim-test
=================

Slim Framework test helper built on top of the PHPUnit test framework

v3.2.5(2y ago)436.2k↓46.3%2[1 issues](https://github.com/nekofar/slim-test/issues)[9 PRs](https://github.com/nekofar/slim-test/pulls)2MITPHPPHP &gt;=8.1

Since Sep 7Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/nekofar/slim-test)[ Packagist](https://packagist.org/packages/nekofar/slim-test)[ Fund](https://ud.me/nekofar.crypto)[ RSS](/packages/nekofar-slim-test/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (55)Used By (2)

Slim Test Helper
================

[](#slim-test-helper)

[![Packagist Version](https://camo.githubusercontent.com/9636a3ea2a6f24fb8c6a520878b36cbf1b5f716a6d92b06ffa990c416c228359/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e656b6f6661722f736c696d2d746573742e737667)](https://packagist.org/packages/nekofar/slim-test)[![PHP from Packagist](https://camo.githubusercontent.com/1548568445bf4aaf8a0f340119285fe0c7e9d01022256b059b0f2eae4259054f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e656b6f6661722f736c696d2d746573742e737667)](https://packagist.org/packages/nekofar/slim-test)[![Packagist Downloads](https://camo.githubusercontent.com/0d1402ac6588949bd973c03036fabf1f35fd8dd998f2291a8601e89badd61083/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e656b6f6661722f736c696d2d74657374)](https://packagist.org/packages/nekofar/slim-test)[![Tests Status](https://camo.githubusercontent.com/c593e25e5a38dc1599f682f9c9c989fc32e30ed89c3457f2ff3681909d8a2a99/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e656b6f6661722f736c696d2d746573742f74657374732e796d6c)](https://github.com/nekofar/slim-test/actions/workflows/tests.yml)[![Coverage Status](https://camo.githubusercontent.com/951659d678ec7f659e4ba6d08fb2bfd8e9cb3bc0285cb913f5ba3dbbd3e24da2/68747470733a2f2f636f6465636f762e696f2f67682f6e656b6f6661722f736c696d2d746573742f67726170682f62616467652e737667)](https://codecov.io/gh/nekofar/slim-test)[![License](https://camo.githubusercontent.com/09cf184173ac9144965821306afd91bbfff9220752c8d7a6d6fd83c283dd3af5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e656b6f6661722f736c696d2d746573742e737667)](https://github.com/nekofar/slim-test/blob/master/LICENSE.md)[![X (formerly Twitter) Follow](https://camo.githubusercontent.com/eb96cbc73e1d9991b23e5f2477630fa2903c2d8e04842ee7a4aaa462a9bbe610/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f6c6c6f772d2534306e656b6f6661722d6666666666663f6c6f676f3d78267374796c653d666c6174)](https://x.com/nekofar)[![Farcaster (Warpcast) Follow](https://camo.githubusercontent.com/a6142d19fd10b1d19dfdc26234ea1a966bd059c3964490829efd20089420f4cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f6c6c6f772d2534306e656b6f6661722d3835354443442e7376673f6c6f676f3d646174613a696d6167652f737667253262786d6c3b6261736536342c50484e325a79423361575230614430694d7a497a4969426f5a576c6e61485139496a49354e794967646d6c6c64304a76654430694d43417749444d794d7941794f54636949475a7062477739496d3576626d5569494868746247357a50534a6f644852774f693876643364334c6e637a4c6d39795a7938794d4441774c334e325a79492b436a78775958526f49475139496b30314e5334314f445933494441754e7a4d7a4d7a4d33534449324d7934304d544e574d6a6b324c6a49324e3067794d7a49754f544133566a45324d4334344f544e494d6a4d794c6a59774e304d794d6a6b754d6a4d32494445794d7934304e7a6b674d546b334c6a63354d6941354e4334784e6941784e546b754e5341354e4334784e6b4d784d6a45754d6a413449446b304c6a4532494467354c6a63324e4449674d54497a4c6a51334f5341344e69347a4f544932494445324d4334344f544e494f4459754d446b7a4d3159794f5459754d6a5933534455314c6a55344e6a64574d4334334d7a4d7a4d7a64614969426d6157787350534a3361476c305a53497650676f38634746306143426b50534a4e4d4334794f544d7a4d7a55674e4449754e6a684d4d5449754e6a67324e7941344e4334324d6a59335344497a4c6a45334d7a4e574d6a55304c6a4d79517a45334c6a6b774f4449674d6a55304c6a4d794944457a4c6a5930494449314f4334314f4467674d544d754e6a51674d6a597a4c6a67314d3159794e7a55754d6a6b7a534445784c6a637a4d7a4e444e6934304e6a67794d6941794e7a55754d6a6b7a494449754d6941794e7a6b754e545979494449754d6941794f4451754f444933566a49354e6934794e6a64494d5441344c6a6b334d3159794f4451754f444933517a45774f4334354e7a4d674d6a63354c6a55324d6941784d4451754e7a4131494449334e5334794f544d674f546b754e4451674d6a63314c6a49354d3067354e7934314d7a4d7a566a49324d7934344e544e444f5463754e544d7a4d7941794e5467754e54673449446b7a4c6a49324e5445674d6a55304c6a4d7949446734494449314e43347a4d6b67334e6934314e6c59304d6934324f4567774c6a49354d7a4d7a4e566f6949475a7062477739496e646f6158526c4969382b436a78775958526f49475139496b30794d7a51754f44457a494449314e43347a4d6b4d794d6a6b754e545134494449314e43347a4d6941794d6a55754d6a67674d6a55344c6a55344f4341794d6a55754d6a67674d6a597a4c6a67314d3159794e7a55754d6a6b7a534449794d79347a4e7a4e444d6a45344c6a45774f4341794e7a55754d6a6b7a494449784d7934344e4341794e7a6b754e545979494449784d7934344e4341794f4451754f444933566a49354e6934794e6a64494d7a49774c6a59784d3159794f4451754f444933517a4d794d4334324d544d674d6a63354c6a55324d69417a4d5459754d7a5131494449334e5334794f544d674d7a45784c6a4134494449334e5334794f544e494d7a41354c6a45334d3159794e6a4d754f44557a517a4d774f5334784e7a4d674d6a55344c6a55344f43417a4d4451754f544131494449314e43347a4d6941794f546b754e6a51674d6a55304c6a4d79566a67304c6a59794e6a64494d7a45774c6a45794e30777a4d6a49754e5449674e4449754e6a68494d6a51324c6a49314d3159794e5451754d7a4a494d6a4d304c6a67784d316f6949475a7062477739496e646f6158526c4969382b436a777663335a6e50676f3d267374796c653d666c6174)](https://warpcast.com/nekofar)[![Donate](https://camo.githubusercontent.com/37edcc3611ba8f5c0bbb34b51d9be5652f211c0df2eaaa2d078b6a3b640b0d5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d6e656b6f6661722e63727970746f2d6132623962633f6c6f676f3d6b6f2d6669266c6f676f436f6c6f723d7768697465)](https://ud.me/nekofar.crypto)

> Slim Framework test helper built on top of the PHPUnit test framework

This library inspired by the [Illuminate Testing](https://github.com/illuminate/testing) component.

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

[](#installation)

To get started, install the package using composer:

```
composer require nekofar/slim-test --dev
```

Requires Slim Framework 4 and PHP 8.0 or newer.

Usage
-----

[](#usage)

```
use Nekofar\Slim\Test\Traits\AppTestTrait;
use PHPUnit\Framework\TestCase as BaseTestCase;

class TestCase extends BaseTestCase
{
    use AppTestTrait;

    protected function setUp(): void
    {
        $app = require __DIR__ . '/../config/bootstrap.php';

        $this->setUpApp($app);
    }

    public function testHomePage(): void
    {
        $this->get('/')
            ->assertOk()
            ->assertSee('Welcome');
    }
}
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

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

---

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance54

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% 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 ~20 days

Recently: every ~62 days

Total

45

Last Release

835d ago

Major Versions

v1.1.15 → v2.0.0-alpha.02022-04-14

v2.0.7 → v3.0.02023-04-26

PHP version history (3 changes)v1.0.0-beta.0PHP ^7.3 || ^8.0

v2.0.0-alpha.0PHP ^8.0

v3.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![nekofar](https://avatars.githubusercontent.com/u/147401?v=4)](https://github.com/nekofar "nekofar (269 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (60 commits)")

---

Tags

helperphpphpunitslimslim-frameworktestingphpplugintestingphpunitunitframeworktestslim

### Embed Badge

![Health badge](/badges/nekofar-slim-test/health.svg)

```
[![Health](https://phpackages.com/badges/nekofar-slim-test/health.svg)](https://phpackages.com/packages/nekofar-slim-test)
```

###  Alternatives

[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[pestphp/pest-plugin-profanity

The Pest Profanity Plugin

1028.8M28](/packages/pestphp-pest-plugin-profanity)[pestphp/pest-plugin-arch

The Arch plugin for Pest PHP.

3945.8M4.0k](/packages/pestphp-pest-plugin-arch)[pestphp/pest-plugin-livewire

The Pest Livewire Plugin

635.6M544](/packages/pestphp-pest-plugin-livewire)[pestphp/pest-plugin-faker

The Pest Faker Plugin

376.4M206](/packages/pestphp-pest-plugin-faker)[pestphp/pest-plugin-type-coverage

The Type Coverage plugin for Pest PHP.

343.3M732](/packages/pestphp-pest-plugin-type-coverage)

PHPackages © 2026

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