PHPackages                             marcuwynu23/php-inspector - 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. marcuwynu23/php-inspector

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

marcuwynu23/php-inspector
=========================

A PHP-friendly developer tool for logging and inspecting PHP classes, objects, and data structures.

v1.0.2(6mo ago)00MITPHPPHP ^8.0

Since Nov 4Pushed 6mo agoCompare

[ Source](https://github.com/marcuwynu23/php-inspector)[ Packagist](https://packagist.org/packages/marcuwynu23/php-inspector)[ RSS](/packages/marcuwynu23-php-inspector/feed)WikiDiscussions main Synced 1mo ago

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

 PHP Inspector
===============

[](#-php-inspector-)

 [![Stars Badge](https://camo.githubusercontent.com/8484e8d496402672327ed3259bc4f0c6fef326b8f7c2c1efe4d15a0531cf0ab9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d6172637577796e7532332f7068702d696e73706563746f722e737667)](https://camo.githubusercontent.com/8484e8d496402672327ed3259bc4f0c6fef326b8f7c2c1efe4d15a0531cf0ab9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d6172637577796e7532332f7068702d696e73706563746f722e737667) [![Forks Badge](https://camo.githubusercontent.com/b7bf7d217250fd76a113b6c5b90172ebc9debe1afc1b5b8008f9f84ecff516db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6d6172637577796e7532332f7068702d696e73706563746f722e737667)](https://camo.githubusercontent.com/b7bf7d217250fd76a113b6c5b90172ebc9debe1afc1b5b8008f9f84ecff516db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6d6172637577796e7532332f7068702d696e73706563746f722e737667) [![Issues Badge](https://camo.githubusercontent.com/70d9702038f8346dadc4969b5702f31c7039b9a1216125401174b2d0b8fdaf6a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d6172637577796e7532332f7068702d696e73706563746f722e737667)](https://camo.githubusercontent.com/70d9702038f8346dadc4969b5702f31c7039b9a1216125401174b2d0b8fdaf6a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d6172637577796e7532332f7068702d696e73706563746f722e737667) [![License Badge](https://camo.githubusercontent.com/f6d2c220d505a25a7fa55502d6bc4899dfd2f122a0af9fb8dfb931c1e465618d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6172637577796e7532332f7068702d696e73706563746f722e737667)](https://camo.githubusercontent.com/f6d2c220d505a25a7fa55502d6bc4899dfd2f122a0af9fb8dfb931c1e465618d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6172637577796e7532332f7068702d696e73706563746f722e737667)

A PHP-friendly developer tool for logging and inspecting PHP classes, objects, and data structures.

---

Features
--------

[](#features)

- Log detailed information about a class or object:
    - Class name and parent
    - Interfaces and traits
    - Constants, methods, and properties
- Pretty-printed JSON output for easier debugging
- Can handle objects, classes, arrays, and primitives
- Simple integration with Laravel's logging system (or standard output)

---

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

[](#installation)

Install via Composer:

```
composer require marcuwynu23/php-inspector
```

For developrnent and testing:

```
composer require --dev phpunit/phpunit
```

### Usage

[](#usage)

Log a Class

```
use Marcuwynu23\PHPInspector\PHPInspector;

PHPInspector::log(\DateTime::class);
```

Log an Object

```
$obj = new stdClass();
$obj->foo = 'bar';

PHPInspector::log($obj);
```

Log an Array or Primitive

```
PHPInspector::log(['foo' => 'bar']);
PHPInspector::log('Hello World');
```

All output will be printed in JSON format to stdout (or Laravel log if used in Laravel).

### Running Tests

[](#running-tests)

This library uses PHPUnit 10 for testing. Run tests using Composer.

```
composer test
```

This will execute:

```
vendor\bin\phpunit.bat --colors=always

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance68

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Every ~0 days

Total

3

Last Release

188d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

console-logdebugginginspectionlaravelloggingphpterminaltool

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marcuwynu23-php-inspector/health.svg)

```
[![Health](https://phpackages.com/badges/marcuwynu23-php-inspector/health.svg)](https://phpackages.com/packages/marcuwynu23-php-inspector)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[beyondcode/laravel-server-timing

Add Server-Timing header information from within your Laravel apps.

5712.0M1](/packages/beyondcode-laravel-server-timing)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[label84/laravel-auth-log

Log user authentication actions in Laravel.

3654.0k](/packages/label84-laravel-auth-log)

PHPackages © 2026

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