PHPackages                             stout/stout - 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. stout/stout

ActiveLibrary[Framework](/categories/framework)

stout/stout
===========

Lightweight opinionated PHP framework built on Slim with strict types, PHP-DI, and RoadRunner.

v0.1.4(1mo ago)036↓66.7%1MITPHPPHP ^8.3CI passing

Since Jul 11Pushed 1mo agoCompare

[ Source](https://github.com/kevintherm/stout-framework)[ Packagist](https://packagist.org/packages/stout/stout)[ RSS](/packages/stout-stout/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (13)Versions (16)Used By (1)

Stout Core - Framework Documentation
====================================

[](#stout-core---framework-documentation)

This is the core library of the **Stout PHP Framework**, a lightweight, opinionated, dependency-injection-first framework built on top of the Slim 4 HTTP engine, PHP-DI, and Spiral RoadRunner.

---

Technical Overview
------------------

[](#technical-overview)

Stout enforces strict type safety (PHPStan Level 10), explicit constructor-based dependency injection, and zero-magic architecture.

### Architectural Blueprint

[](#architectural-blueprint)

```
  [ app.php (user-defined entrypoint) ]
               │
               ├── PHP_SAPI === 'cli'  ──► runCli($argv)
               │
               └── HTTP worker mode   ──► run()
                          │
                          ▼
               [ Stout\Application ]
                ├───► [ Stout\Config\Config ]
                ├───► [ Stout\Container\ContainerFactory ] ───► [ PHP-DI Container ]
                ├───► [ Stout\Http\Kernel ]
                └───► [ Stout\Console\Kernel ]

```

---

Getting Started
---------------

[](#getting-started)

There is no CLI binary. Instead, your entrypoint file (e.g. `app.php`) is responsible for booting the application and deciding how to run based on the PHP SAPI:

```
