PHPackages                             herloct/codeception-slim-module - 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. herloct/codeception-slim-module

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

herloct/codeception-slim-module
===============================

Codeception Module for Slim 3 Microframework.

1.1.0(9y ago)26131.6k—6.3%5[1 issues](https://github.com/herloct/codeception-slim-module/issues)5MITPHPPHP ^5.6 || ^7.0

Since Oct 7Pushed 9y ago2 watchersCompare

[ Source](https://github.com/herloct/codeception-slim-module)[ Packagist](https://packagist.org/packages/herloct/codeception-slim-module)[ Docs](https://github.com/herloct/codeception-slim-module)[ RSS](/packages/herloct-codeception-slim-module/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (2)Versions (7)Used By (5)

Codeception Slim Module
=======================

[](#codeception-slim-module)

[![Master Build Status](https://camo.githubusercontent.com/610635a493b8901f23d90adfbb3143d43b73e8088fc7a126f5b83fd2cdc2b630/68747470733a2f2f7472617669732d63692e6f72672f6865726c6f63742f636f646563657074696f6e2d736c696d2d6d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/herloct/codeception-slim-module)[![Packagist Stable Version](https://camo.githubusercontent.com/e7d1ea9762c9d1a0705fd74ea226cb2daf53c0ee4cbc53cce2309288eb84f31f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865726c6f63742f636f646563657074696f6e2d736c696d2d6d6f64756c652e737667)](https://packagist.org/packages/herloct/codeception-slim-module)[![Packagist License](https://camo.githubusercontent.com/bca9f7599ff1abfd8f191e523266b28150e540abcb52cd15b998a1d539b97528/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6865726c6f63742f636f646563657074696f6e2d736c696d2d6d6f64756c652e737667)](https://packagist.org/packages/herloct/codeception-slim-module)[![Libraries.io for GitHub](https://camo.githubusercontent.com/f739b4dd333fcf65aa523b6d8c3a0d1726073f4a739089e8bca0afd3812cf29e/68747470733a2f2f696d672e736869656c64732e696f2f6c6962726172696573696f2f6769746875622f6865726c6f63742f636f646563657074696f6e2d736c696d2d6d6f64756c652e737667)](https://libraries.io/github/herloct/codeception-slim-module)

This module allows you to run tests inside [Slim 3 Microframework](http://www.slimframework.com/).
Based on [ZendExpressive Module](https://github.com/Codeception/Codeception/blob/2.2/src/Codeception/Module/ZendExpressive.php).

Install
-------

[](#install)

Via commandline:

```
composer require --dev herloct/codeception-slim-module
```

Via `composer.json`:

```
{
  "require-dev": {
    "herloct/codeception-slim-module": "^1.1"
  }
}
```

Config
------

[](#config)

Put this on your `codeception.yml`

```
modules:
  config:
    \Herloct\Codeception\Module\Slim:
      container: path/to/container.php
    REST:
      depends: \Herloct\Codeception\Module\Slim
```

Or on your `tests/functional.suite.yml`

```
modules:
  enabled:
    - \Helper\Functional
    - \Herloct\Codeception\Module\Slim:
        container: path/to/container.php
    - REST:
        depends: \Herloct\Codeception\Module\Slim
```

The `container` properties is a relative path to file which returns your App's Container.
Here is the minimum `container.php` contents.

```
require __DIR__.'/vendor/autoload.php';

use Psr\Container\ContainerInterface;
use Slim\App;
use Slim\Container;

$container = new Container([
    App::class => function (ContainerInterface $c) {
        $app = new App($c);

        // routes and middlewares here

        return $app;
    }
]);

return $container;
```

You could use this [Sample Project](https://github.com/herloct/codeception-slim-module-example) as a reference.

API
---

[](#api)

- app - instance of `\Slim\App`
- container - instance of `\Psr\Container\ContainerInterface`
- client - [BrowserKit](http://symfony.com/doc/current/components/browser_kit.html) client

Todos
-----

[](#todos)

- Add more acceptance/functional tests other than REST.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~29 days

Recently: every ~37 days

Total

6

Last Release

3407d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1674009?v=4)[Herloct](/maintainers/herloct)[@herloct](https://github.com/herloct)

---

Top Contributors

[![herloct](https://avatars.githubusercontent.com/u/1674009?v=4)](https://github.com/herloct "herloct (63 commits)")[![abrownPLTW](https://avatars.githubusercontent.com/u/7684012?v=4)](https://github.com/abrownPLTW "abrownPLTW (9 commits)")

---

Tags

codeceptioncodeception-modulemodulephpslim-frameworkcodeceptionslimmodule

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/herloct-codeception-slim-module/health.svg)

```
[![Health](https://phpackages.com/badges/herloct-codeception-slim-module/health.svg)](https://phpackages.com/packages/herloct-codeception-slim-module)
```

###  Alternatives

[lucatume/wp-browser

A set of Codeception modules to test WordPress projects.

6424.1M182](/packages/lucatume-wp-browser)[codeception/lib-asserts

Assertion methods used by Codeception core and Asserts module

10561.9M21](/packages/codeception-lib-asserts)[codeception/module-asserts

Codeception module containing various assertions

8654.0M1.5k](/packages/codeception-module-asserts)[codeception/lib-innerbrowser

Parent library for all Codeception framework modules and PhpBrowser

8744.5M89](/packages/codeception-lib-innerbrowser)[docler-labs/codeception-slim-module

Codeception Module for Slim framework.

13206.0k1](/packages/docler-labs-codeception-slim-module)[codeception/module-symfony

Codeception module for Symfony framework

9610.1M143](/packages/codeception-module-symfony)

PHPackages © 2026

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