PHPackages                             ascriver/debugview - 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. ascriver/debugview

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

ascriver/debugview
==================

A custom Monolog handler for Windows DebugView.

v1.0.0(1y ago)02MITPHPPHP &gt;=8.1CI failing

Since Apr 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AScriver/debugview)[ Packagist](https://packagist.org/packages/ascriver/debugview)[ RSS](/packages/ascriver-debugview/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

DebugView
=========

[](#debugview)

DebugView is a custom Monolog handler that sends log messages to the Windows DebugView utility using the `OutputDebugStringA` function from the Windows API.

Features
--------

[](#features)

- Integrates with [Monolog](https://github.com/Seldaek/monolog) for logging.
- Sends log messages directly to DebugView for real-time debugging on Windows systems.
- Lightweight and easy to use.

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

[](#installation)

To install the package, use Composer:

```
composer require ascriver/debugview
```

Usage
-----

[](#usage)

Here is an example of how to use the `DebugViewHandler` in your project:

```
use Monolog\Logger;
use Ascriver\DebugViewHandler;

// Create a logger instance
$logger = new Logger('debug');

// Add the DebugViewHandler
$logger->pushHandler(new DebugViewHandler());

// Log a message
$logger->debug('This is a debug message');
```

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

[](#requirements)

- PHP 8.1 or higher
- Windows operating system (required for OutputDebugStringA)
- FFI must be enabled in your PHP configuration (php.ini):

> ⚠️ If FFI is disabled or restricted (e.g., in some shared hosting environments), this handler will not function correctly.

Development
-----------

[](#development)

### Running Tests

[](#running-tests)

This project uses PHPUnit for testing. To run the tests, first install the dependencies:

```
composer install
```

Then, run the tests:

```
vendor/bin/phpunit
```

### Project Structure

[](#project-structure)

- `src/`: Contains the main source code, including the `DebugViewHandler` class.
- `tests/`: Contains unit tests for the project.
- `composer.json`: Defines the project dependencies and autoloading configuration.

### Testing Notes

[](#testing-notes)

The `DebugViewHandlerTest` includes a test for the `write` method, which uses PHP's `FFI` to mock the `OutputDebugStringA` function. Reflection is used to inject the mock into the handler.

Contributing
------------

[](#contributing)

Contributions are welcome! Please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bugfix.
3. Write tests for your changes.
4. Submit a pull request.

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance43

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

450d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34779562?v=4)[Austin](/maintainers/ascriver)[@AScriver](https://github.com/AScriver)

---

Top Contributors

[![AScriver](https://avatars.githubusercontent.com/u/34779562?v=4)](https://github.com/AScriver "AScriver (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ascriver-debugview/health.svg)

```
[![Health](https://phpackages.com/badges/ascriver-debugview/health.svg)](https://phpackages.com/packages/ascriver-debugview)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k203.8M356](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M23](/packages/spatie-flare-client-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2587.9k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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