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 boilerplate bundle for simple websites and APIs.

v0.0.3(2mo ago)02MITPHPPHP ^8.4

Since Feb 9Pushed 2mo agoCompare

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

READMEChangelog (3)Dependencies (14)Versions (4)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

35

—

LowBetter than 80% of packages

Maintenance84

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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 ~8 days

Total

3

Last Release

82d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dcc67259b70298aa05fc48fbfe79c507e0b692c2225cd00ea32414db3a886faf?d=identicon)[dekadans](/maintainers/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/platform

The Shopware e-commerce core

3.3k1.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.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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