PHPackages                             ascetic-soft/rowcast-profiler - 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. [Database &amp; ORM](/categories/database)
4. /
5. ascetic-soft/rowcast-profiler

ActiveLibrary[Database &amp; ORM](/categories/database)

ascetic-soft/rowcast-profiler
=============================

SQL query profiler for Rowcast via ConnectionInterface decoration

1.0.0(1mo ago)041MITPHPPHP &gt;=8.4

Since Apr 26Pushed yesterdayCompare

[ Source](https://github.com/ascetic-soft/RowcastProfiler)[ Packagist](https://packagist.org/packages/ascetic-soft/rowcast-profiler)[ RSS](/packages/ascetic-soft-rowcast-profiler/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (4)Versions (2)Used By (1)

Rowcast Profiler
================

[](#rowcast-profiler)

Lightweight SQL profiler for [Rowcast](https://github.com/ascetic-soft/Rowcast): subscribes to `AsceticSoft\Rowcast\ConnectionInterface` query events to record timings, parameters (sanitized), errors, and simple aggregates.

Install
-------

[](#install)

```
composer require ascetic-soft/rowcast-profiler
```

Usage
-----

[](#usage)

```
use AsceticSoft\Rowcast\Connection;
use AsceticSoft\RowcastProfiler\ConnectionProfiler;
use AsceticSoft\RowcastProfiler\InMemoryQueryProfileStore;
use AsceticSoft\RowcastProfiler\DefaultParameterSanitizer;
use AsceticSoft\RowcastProfiler\RowcastProfiler;

$inner = Connection::create('sqlite::memory:');
$store = new InMemoryQueryProfileStore();
$sanitizer = new DefaultParameterSanitizer();
$profiler = new RowcastProfiler($store, $sanitizer, slowQueryThresholdMs: 50.0, maxQueries: 500);

new ConnectionProfiler($inner, $profiler);
$inner->fetchOne('SELECT 1');

foreach ($store->getProfiles() as $profile) {
    echo $profile->sql, ' ', $profile->durationMs, "ms\n";
}
```

Symfony: enable `rowcast.profiler` in [RowcastBundle](https://github.com/ABorodulin/rowcast-bundle) (see bundle docs).

Packagist / versioning
----------------------

[](#packagist--versioning)

The root `composer.json` may include a `"version": "1.0.0"` field so path repositories and CI resolve a stable `^1.0` constraint. Remove that field when tagging releases on GitHub/Packagist (tags define the version).

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance96

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community8

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

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67126642d0e8ae8837b3104dcd120f7992ed0837538a7d140914e17420eb17c2?d=identicon)[borodulin](/maintainers/borodulin)

---

Top Contributors

[![borodulin](https://avatars.githubusercontent.com/u/8121448?v=4)](https://github.com/borodulin "borodulin (6 commits)")

---

Tags

profilerdatabasesqlpdorowcast

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ascetic-soft-rowcast-profiler/health.svg)

```
[![Health](https://phpackages.com/badges/ascetic-soft-rowcast-profiler/health.svg)](https://phpackages.com/packages/ascetic-soft-rowcast-profiler)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k595.8M6.4k](/packages/doctrine-dbal)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.8M74](/packages/ifsnop-mysqldump-php)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4873.1M37](/packages/aura-sqlquery)[paragonie/easydb

Easy-to-use database abstraction

741280.1k24](/packages/paragonie-easydb)[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k23.1k](/packages/clouddueling-mysqldump-php)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86848.3k](/packages/ezsql-ezsql)

PHPackages © 2026

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