nekofar/pest-plugin-slim

The Pest Slim Plugin
17,095 5
Install
composer require nekofar/pest-plugin-slim
Latest Version:v3.1.6
PHP:>=8.1
License:MIT
Last Updated:Apr 14, 2026
Links: GitHub  ·  Packagist
Maintainer: nekofar

The Pest Slim Plugin

Packagist Version PHP from Packagist Packagist Downloads Tests Status Coverage Status License Twitter: nekofar Donate

This package is a plugin for Pest PHP. The Slim Plugin for Pest gives your basic functionality for testing your API's built by Slim.

Installation

To get started, install the plugin using composer:

composer require nekofar/pest-plugin-slim --dev

Requires Slim Framework 4 and PHP 8.1 or newer.

Usage

use function Nekofar\Slim\Pest\get;

beforeEach(function (): void {
    $app = require __DIR__ . '/../config/bootstrap.php';
        
    $this->setUpApp($app);
})
            
it('can see home page', function (): void {
    get('/')
        ->assertOk()
        ->assertSee('Welcome');
});

Contributing

Please see CONTRIBUTING for details.

License

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


Related Packages

totalcms/pest-plugin-slim

The Pest Slim Plugin (maintained fork of nekofar/pest-plugin-slim)

589 0
pestphp/pest-plugin-stressless

Stressless plugin for Pest

1,326,684 67
erikgaal/pest-plugin-sharding

Pest Plugin to split tests into multiple runs

614,159 2
lukeraymonddowning/pest-plugin-money

A Pest PHP plugin that makes testing popular Money packages easy.

69,928 21

Version History

Version Released PHP License
v3.1.6 >=8.1 MIT
v3.1.5 >=8.1 MIT
v3.1.4 >=8.1 MIT
v3.1.3 >=8.1 MIT
v3.1.2 >=8.1 MIT
Pre-releases (11)
Version Released PHP License
v1.1.0-beta.0 ^7.3 || ^8.0 MIT
v1.1.0-alpha.1 ^7.3 || ^8.0 MIT
v1.1.0-alpha.0 ^7.3 || ^8.0 MIT
v1.0.0-beta.0 ^7.3 || ^8.0 MIT
v1.0.0-alpha.6 ^7.3 || ^8.0 MIT