Search by

php-forge / debug-core

terabytesoftw

Framework-agnostic snapshots, storage, and frontend for PHP debug adapters.

Package info

github.com/php-forge/debug-core

pkg:composer/php-forge/debug-core

Statistics

Installs: 4 570

Dependents: 2

Suggesters: 0

Stars: 1

Open Issues: 1

dev-main / 0.1.x-dev 2026-09-09 21:25 UTC

This package is auto-updated.

Last update: 2026-09-10 15:56:46 UTC


README

PHP Forge

Debug Core


PHPUnit Mutation Testing PHPStan Security

A framework-agnostic PHP core providing snapshots, storage, and the complete frontend for debugger adapters.

Features

Feature overview

Installation

Install an adapter, not this package. Debug Core is pulled in transitively:

If you develop an adapter:

composer require php-forge/debug-core

PHP 8.3 or later and the ctype, intl, and mbstring extensions are required.

Adapter boundary

The core owns snapshot capture, persistence, comparison, and the shared UI. A framework adapter remains responsible for:

  • collecting framework data and converting it into immutable snapshots;
  • exposing the toolbar data endpoints and deciding when a response receives the toolbar;
  • defining and publishing assets through its own framework;
  • rendering the shared templates with its view component;
  • routes, controllers, URL generation, panel metadata, and framework-specific panel views;
  • implementing Routing\DebugUrlGeneratorInterface so portable renderers build panel links without a framework URL manager.

The adapter-facing API is documented in the source PHPDoc under src/.

Frontend development

The frontend source lives in resources/src and Vite builds it into resources/assets/dist. Rebuild and verify with:

npm install
npm run format:check
npm run lint:js
npm run lint:css
npm run test:js
npm run build

Package information

PHP PHPStan Level Max Latest Stable Version Total Downloads

Code quality

Codecov Quality Assets StyleCI

Social networks

Follow on X

License

License