PHPackages                             php-programmist/file-sql-logger-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. php-programmist/file-sql-logger-bundle

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

php-programmist/file-sql-logger-bundle
======================================

Provides service that logs all mutable queries to the file

v1.0.0(6y ago)076MITPHPPHP ^7.2.5

Since Mar 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/php-programmist/file-sql-logger-bundle)[ Packagist](https://packagist.org/packages/php-programmist/file-sql-logger-bundle)[ RSS](/packages/php-programmist-file-sql-logger-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

FileSqlLoggerBundle
===================

[](#filesqlloggerbundle)

This bundle provides service witch implements SQLLogger interface. With this service you can log all mutating queries (Insert, Update and Delete) of Doctine.

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

[](#installation)

```
composer require php-programmist/file-sql-logger-bundle

```

Usage
-----

[](#usage)

```
//src/Controller/SomeController.php
namespace App\Controller;

use PhpProgrammist\FileSqlLoggerBundle\FileSqlLogger;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;

class SomeController extends AbstractController
{
    public function index(FileSqlLogger $sql_logger)
    {
        $connection = $this->getDoctrine()->getConnection();
        $connection->getConfiguration()->setSQLLogger($sql_logger);
        $em = $this->getDoctrine()->getManager();
        //make queries for some entities and change it
        $em->flush();
        ...
    }
}

```

Configuration
-------------

[](#configuration)

By default log will be written to folder /sql/. You can change folder via configuration.

Create file config/packages/file\_sql\_logger.yaml:

```
file_sql_logger:
    path_to_logs: '%kernel.project_dir%/sql/'

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2296d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6253250?v=4)[Kostin Alexey](/maintainers/php-programmist)[@php-programmist](https://github.com/php-programmist)

---

Top Contributors

[![php-programmist](https://avatars.githubusercontent.com/u/6253250?v=4)](https://github.com/php-programmist "php-programmist (8 commits)")

### Embed Badge

![Health badge](/badges/php-programmist-file-sql-logger-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/php-programmist-file-sql-logger-bundle/health.svg)](https://phpackages.com/packages/php-programmist-file-sql-logger-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M576](/packages/shopware-core)[open-dxp/opendxp

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

9421.6k61](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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