nekofar/pest-plugin-slim

The Pest Slim Plugin
15,192 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)

26 0
nekofar/pest-plugin-mock-client

Pest Plugin for Mock HTTP client

22 1
quadraecom/pest-plugin-selectors

Add CSS selector-based testing capabilities to Pest

2,035 1
pestphp/pest-plugin-agent

AI agent verification plugin for Pest

15,020 6