PHPackages                             tourze/symfony-rotate-profile-storage-bundle - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. tourze/symfony-rotate-profile-storage-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

tourze/symfony-rotate-profile-storage-bundle
============================================

A Symfony bundle that provides automatic rotation and cleanup for Symfony Profiler storage files to prevent disk space issues

0.1.1(6mo ago)012MITPHPCI passing

Since Apr 19Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/symfony-rotate-profile-storage-bundle)[ Packagist](https://packagist.org/packages/tourze/symfony-rotate-profile-storage-bundle)[ RSS](/packages/tourze-symfony-rotate-profile-storage-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (19)Versions (5)Used By (0)

Symfony Rotate Profile Storage Bundle
=====================================

[](#symfony-rotate-profile-storage-bundle)

[![PHP Version](https://camo.githubusercontent.com/7663c9d53dc13cedaf0660a8745a7e77d2dd711257f36aa86ebce12a0600ef42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/c27a457659b89ee4f1f80f7995c559dd37f2051bde7167ad25791e5c5c92cc8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e737667)](https://github.com/tourze/symfony-rotate-profile-storage-bundle/actions)[![Code Coverage](https://camo.githubusercontent.com/b3545ae1bcdb4ea486f71f87b43001e82dd21933bc8035d44601706c851265da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e737667)](https://github.com/tourze/symfony-rotate-profile-storage-bundle)

[English](README.md) | [中文](README.zh-CN.md)

A Symfony bundle that provides automatic rotation and cleanup for Symfony Profiler storage files to prevent disk space issues.

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

[](#installation)

```
composer require tourze/symfony-rotate-profile-storage-bundle
```

Quick Start
-----------

[](#quick-start)

This bundle automatically decorates the default Symfony profiler storage and provides automatic cleanup of old profiler files when the number of profiles exceeds a configurable limit.

### Basic Usage

[](#basic-usage)

1. Install the bundle via Composer
2. The bundle will automatically register itself in your Symfony application
3. Configure the rotation settings (optional)

### Configuration

[](#configuration)

You can configure the rotation behavior using environment variables:

```
# Set the maximum number of profiles to keep (default: 1000)
ROTATE_PROFILE_STORAGE_KEEP_SIZE=1000
```

Features
--------

[](#features)

- **Automatic Rotation**: Automatically cleans up old profiler files when the limit is reached
- **Configurable Limits**: Set custom limits for the number of profiles to keep
- **Transparent Integration**: Works seamlessly with existing Symfony profiler functionality
- **Error Handling**: Gracefully handles cleanup errors without affecting application performance

Example
-------

[](#example)

```
// The bundle works automatically once installed
// No manual configuration required

// Optional: Set environment variable for custom limits
$_ENV['ROTATE_PROFILE_STORAGE_KEEP_SIZE'] = 500;
```

How It Works
------------

[](#how-it-works)

The bundle uses a decorator pattern to wrap the default Symfony profiler storage:

1. When a new profile is written, it checks the current number of stored profiles
2. If the count exceeds the configured limit, it triggers a cleanup
3. The cleanup process removes old profiler files to free up disk space
4. All operations are delegated to the original storage implementation

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Symfony 7.3 or higher

License
-------

[](#license)

This bundle is released under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance72

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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

Total

4

Last Release

180d ago

### Community

Maintainers

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

---

Top Contributors

[![tourze](https://avatars.githubusercontent.com/u/13899502?v=4)](https://github.com/tourze "tourze (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tourze-symfony-rotate-profile-storage-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tourze-symfony-rotate-profile-storage-bundle/health.svg)](https://phpackages.com/packages/tourze-symfony-rotate-profile-storage-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[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)

PHPackages © 2026

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