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

ActiveLibrary

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 1mo ago

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

27

—

LowBetter than 49% of packages

Maintenance46

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

405d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f9552b334b7af7acfe08be2bdbc451ada7fd84d84909ac57d4f19efdca3b91f?d=identicon)[ascriver](/maintainers/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

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[drevops/git-artifact

Package artifact from your codebase in CI and push it to a separate git repo.

2133.2k](/packages/drevops-git-artifact)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)

PHPackages © 2026

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