PHPackages                             sauber-php/framework - 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. sauber-php/framework

ActiveLibrary[Framework](/categories/framework)

sauber-php/framework
====================

The Sauber PHP framework

323PHP

Since May 30Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://supportukrainenow.org/)

Sauber PHP Framework
====================

[](#sauber-php-framework)

[![GitHub release (latest by date)](https://camo.githubusercontent.com/2477a0d48e9395fdafefc5cd0f4ecc5b6cc656fd85d1928d4c9f3c55e579fc50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7361756265722d7068702f6672616d65776f726b)](https://camo.githubusercontent.com/2477a0d48e9395fdafefc5cd0f4ecc5b6cc656fd85d1928d4c9f3c55e579fc50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7361756265722d7068702f6672616d65776f726b)[![Tests](https://github.com/sauber-php/framework/workflows/tests/badge.svg)](https://github.com/sauber-php/framework/workflows/tests/badge.svg)[![Static Analysis](https://github.com/sauber-php/framework/workflows/static/badge.svg)](https://github.com/sauber-php/framework/workflows/static/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/d01800a1e171b237b9f832bd27492094ba3ed77b3d898a5a1749473fc5ca3fe2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7361756265722d7068702f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpfox/container)[![GitHub](https://camo.githubusercontent.com/d96d151efbb9d397f290d980a421864d0dab3263c0a6e4dd62c5734febed1f38/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7361756265722d7068702f6672616d65776f726b)](https://camo.githubusercontent.com/d96d151efbb9d397f290d980a421864d0dab3263c0a6e4dd62c5734febed1f38/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7361756265722d7068702f6672616d65776f726b)

This is the repository for the Sauber PHP Framework.

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

[](#installation)

You should not need to install this package, you should use the `sauber-php/sauber` template instead, but if you would like to manually build your template, please install using composer:

```
composer require sauber-php/framework
```

Usage
-----

[](#usage)

To use this package outside of the template, you will need to instantiate it yourself.

### Using the Applications static boot method

[](#using-the-applications-static-boot-method)

```
use Sauber\Framework\Application;
use Sauber\Container\Container;

$app = Application::boot(
    container: new Container(),
);

// Register routes here ...

$app->run();
```

### Manually creating the Application

[](#manually-creating-the-application)

```
use Sauber\Container\Container;
use Sauber\Framework\Application;
use Sauber\Http\HttpKernel;
use Sauber\Http\Router;

$container = new Container();
$router = new Router(
    container: $container,
);

$app = new Application(
    router: $router,
    kernel: HttpKernel::using(
        router: $router,
    ),
    container: $container,
);

// Register routes here ...

$app->run();
```

### Using the dispatch method

[](#using-the-dispatch-method)

```
use Sauber\Container\Container;
use Sauber\Framework\Application;
use Sauber\Http\Request;

$app = Application::boot(
    container: new Container(),
);

// Register routes here ...

$app->dispatch(
    request: Request::capture(),
);
```

Testing
-------

[](#testing)

To run the tests:

```
./vendor/bin/pest
```

Static Analysis
---------------

[](#static-analysis)

To check the static analysis:

```
./vendor/bin/phpstan analyse
```

Changelog
---------

[](#changelog)

Please see [the Changelog](CHANGELOG.md) for more information on what has changed recently.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![JustSteveKing](https://avatars.githubusercontent.com/u/6368379?v=4)](https://github.com/JustSteveKing "JustSteveKing (3 commits)")

### Embed Badge

![Health badge](/badges/sauber-php-framework/health.svg)

```
[![Health](https://phpackages.com/badges/sauber-php-framework/health.svg)](https://phpackages.com/packages/sauber-php-framework)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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