PHPackages                             tthe/bagatelle - 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. tthe/bagatelle

ActiveProject[Framework](/categories/framework)

tthe/bagatelle
==============

Bagatelle is a PHP micro framework based on Symfony for simple websites and APIs.

v1.0.0(3d ago)02MITPHP

Since Feb 9Pushed 1mo agoCompare

[ Source](https://github.com/dekadans/bagatelle)[ Packagist](https://packagist.org/packages/tthe/bagatelle)[ RSS](/packages/tthe-bagatelle/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (15)Versions (6)Used By (0)

Bagatelle
=========

[](#bagatelle)

> - A trifle; an insubstantial thing.
> - (literature, music) A short piece of literature or of instrumental music, typically light or playful in character.

*― [bagatelle - Wiktionary, the free dictionary](https://en.wiktionary.org/wiki/bagatelle)*
(Named in contrast to [Symfony](https://symfony.com/))

Introduction
------------

[](#introduction)

Bagatelle is an opinionated PHP boilerplate bundle for simple websites and APIs. It bundles and pre-configures common components from the PHP ecosystem, making it easy to get started while having full control of all the details.

Contents
--------

[](#contents)

Bagatelle centers around Symfony's [HttpKernel](https://symfony.com/packages/HttpKernel), [Routing](https://symfony.com/packages/Routing), [EventDispatcher](https://symfony.com/packages/EventDispatcher) and [Console](https://symfony.com/packages/Console) packages for building web and CLI applications.

Well known packages [Monolog](https://seldaek.github.io/monolog/) (PSR-3 logging), [PHP-DI](https://php-di.org/) (PSR-11 dependency injection container), [Twig](https://twig.symfony.com/) (templating engine), [phpdotenv](https://github.com/vlucas/phpdotenv) (environment variables) and [nyholm/psr7](https://github.com/Nyholm/psr7) (HTTP messages) are bundled and preconfigured as well.

A basic but functional implementation for adding middleware to routes and controllers along with CORS support is also included.

Additionally, a Docker image based on [FrankenPHP](https://frankenphp.dev/) is ready for development and production use-cases.

Get Started
-----------

[](#get-started)

### Create project

[](#create-project)

Create a new application based on Bagatelle (replace "my-project" with your name of choice):

```
composer create-project tthe/bagatelle my-project
```

### Run application

[](#run-application)

When developing you can either use PHPs built-in development server:

```
php -S localhost:8080 -t public
```

or using Docker:

```
docker compose up -d

# or, for production config (using port 80):
SERVER_NAME="your-domain.com" docker compose -f compose.yaml -f compose.prod.yaml up
```

Both development servers will start your Bagatelle-based application at localhost:8080.

The console application is executed using:

```
php bin/console.php
```

Documentation
-------------

[](#documentation)

- [HttpKernel and Request/Response Lifecycle](https://symfony.com/doc/current/components/http_kernel.html)
- [Routing](https://symfony.com/doc/current/routing.html) (only parts related to the `#[Route]` attribute are relevant)
- [HttpFoundation](https://symfony.com/doc/current/components/http_foundation.html) and [PSR-7: HTTP message interfaces](https://www.php-fig.org/psr/psr-7/) for HTTP messages
- [The Dependency Injection Container](https://php-di.org/doc/)
- [Console Commands](https://symfony.com/doc/current/console.html#creating-a-command)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance95

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Every ~47 days

Total

4

Last Release

3d ago

Major Versions

v0.0.3 → v1.0.02026-06-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1143146?v=4)[Tomas Thelander](/maintainers/dekadans)[@dekadans](https://github.com/dekadans)

---

Top Contributors

[![dekadans](https://avatars.githubusercontent.com/u/1143146?v=4)](https://github.com/dekadans "dekadans (59 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tthe-bagatelle/health.svg)

```
[![Health](https://phpackages.com/badges/tthe-bagatelle/health.svg)](https://phpackages.com/packages/tthe-bagatelle)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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