承接 tthe/bagatelle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tthe/bagatelle

最新稳定版本:v0.0.3

Composer 安装命令:

composer create-project tthe/bagatelle

包简介

Bagatelle is a PHP boilerplate bundle for simple websites and APIs.

README 文档

README

  • 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
(Named in contrast to Symfony)

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

Bagatelle centers around Symfony's HttpKernel, Routing, EventDispatcher and Console packages for building web and CLI applications.

Well known packages Monolog (PSR-3 logging), PHP-DI (PSR-11 dependency injection container), Twig (templating engine), phpdotenv (environment variables) and 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 is ready for development and production use-cases.

Get Started

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

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

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固