Download the PHP package monkeyscloud/monkeyslegion-devtools without Composer

On this page you can find all versions of the php package monkeyscloud/monkeyslegion-devtools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package monkeyslegion-devtools

PHP 8.4+ MIT License Tests Coverage PHP 8.4 Hooks

πŸ’ MonkeysLegion DevTools

Enterprise-grade debugging, profiling, and diagnostics for MonkeysLegion v2.

Inspect every request, route, query, cache operation, event, and exception β€” with a self-contained debug toolbar, intelligent anomaly detection, and zero runtime overhead when disabled.


✨ Key Features

Feature Description
πŸš€ Zero Overhead Early-return when disabled β€” no reflection, no magic, no cost
πŸͺ PHP 8.4 Property Hooks 26 computed properties replace traditional getters across the codebase
πŸ” N+1 Detection Automatic duplicate query grouping with configurable thresholds
⚑ Cache Intelligence Hit/miss ratios, hot key ranking, per-store breakdown
πŸ“‘ Event Storm Detection Timeline visualization with storm alerts and slow listener tracking
🎯 Deterministic Sampling Hash-based consistency for distributed trace coherence
πŸ”’ Redaction Pipeline Recursive key-based masking β€” secrets never leak, even in dev
πŸ›‘οΈ Request Fingerprinting xxh3-based grouping for automatic request clustering
πŸ–₯️ Debug Toolbar Self-contained Tokyo Night UI β€” no external assets required
πŸ§ͺ 184 Tests 572 assertions across 22 test files β€” 90%+ coverage

πŸ“¦ Installation

For production diagnostics (sampling + redacted output):

Requirements


πŸš€ Quick Start

1. Boot & Register Middleware

2. Record Intelligence Data

3. Inspect via CLI

4. Debug Toolbar

When toolbar.enabled is true, the toolbar auto-injects into HTML responses:

The toolbar only injects into text/html responses and respects a configurable size limit.


βš™οΈ Configuration

Create config/devtools.mlc:


πŸ”¬ Collectors

Built-in Collectors (7)

# Collector Icon Priority Key Features
1 Request 🌐 1000 Method, URI, headers, IP hashing, fingerprint, timing, memory
2 Middleware πŸ”— 950 Per-middleware timing, memory delta, bottleneck detection
3 Route πŸ”€ 900 Pattern, controller, params, middleware stack, OpenAPI hints
4 Query πŸ—„οΈ 800 SQL timing, N+1 detection, duplicate grouping, source tracing
5 Cache ⚑ 700 Hit/miss ratio, hot key ranking, per-store breakdown
6 Event πŸ“‘ 600 Timeline, storm detection, slow listeners, failed tracking
7 Exception πŸ’₯ 100 Class, message, trace, chain traversal, xxh3 fingerprint

Intelligence Features

N+1 Query Detection

The QueryCollector automatically fingerprints SQL by normalizing literals and compares execution counts against the configurable threshold.

Cache Hot Key Analysis

Event Storm Detection

Custom Collectors

Implement CollectorInterface to add your own:


🏷️ Attributes


πŸͺ PHP 8.4 Property Hooks

DevTools leverages 26 PHP 8.4 property hooks β€” replacing traditional getters with declarative computed properties. This is a first for PHP frameworks.

Asymmetric Visibility

All mutable state uses private(set) β€” the profiler's internal state is read-only for external consumers:


πŸ—„οΈ Storage Drivers

Driver Use Case Persistence
FileProfileStorage Local development β€” JSON files with index βœ… Disk
MemoryProfileStorage Testing & benchmarks ❌ Request-scoped
NullProfileStorage Disabled / CI environments ❌ No-op

File storage features:


πŸ–₯️ Debug Toolbar Panels

Overview Panel

Request summary, performance alerts (slow/error), and collector badge aggregation.

Query Panel

SQL listing with per-query timing, duplicate warnings (🟑), and N+1 alerts (πŸ”΄). Source file tracing for each query.

Cache Panel

Hit/miss ratio gauges, per-store breakdown table, and πŸ”₯ hot key ranking.

Event Panel

Chronological timeline with relative timestamps, storm warnings (πŸŒͺ️), and failed listener tracking.

Exception Panel

Error display with class highlighting, sanitized stack traces, and previous exception chain traversal.

Custom Panels

Extend AbstractPanel to add your own:


πŸ—οΈ Architecture

40 source files Β· 5,099 lines Β· 22 test files Β· 184 tests Β· 572 assertions


πŸ†š Competitive Comparison

Feature Symfony Profiler Laravel Telescope ML DevTools
PHP Version 8.2+ 8.3+ 8.4+
Property Hooks 0 0 26
N+1 Detection ❌ ❌ βœ… Automatic
Event Storm Detection ❌ ❌ βœ…
Cache Hot Key Analysis ❌ ❌ βœ…
Deterministic Sampling ❌ ❌ βœ… Hash-based
Request Fingerprinting ❌ ❌ βœ… xxh3
Priority Collectors ❌ ❌ βœ… With wrap
Partial Value Redaction ❌ ❌ βœ…
Self-Contained Toolbar ❌ Requires Webpack ❌ Requires Tailwind βœ… Embedded
Zero-Overhead Disabled ⚠️ Partial ❌ βœ… Full
Asymmetric Visibility ❌ ❌ βœ… private(set)
MLC Config Format ❌ ❌ βœ… Native

πŸ§ͺ Testing

Test Suite Coverage

Area Test Files Tests Assertions
Collectors (7) 7 62 178
Profiler Core 3 28 102
Storage (3) 3 28 72
Toolbar & Panels 3 38 108
Service Provider 1 12 34
Middleware 1 4 12
Attributes 1 9 18
Exceptions 1 3 6
Redaction 1 10 24
Sampler 1 6 18
Total 22 184 572

πŸ—ΊοΈ Roadmap

Phase Focus Status
0 Contracts & Skeleton βœ… Complete
1 MVP Profiler & CLI βœ… Complete
2 Debug Toolbar & Local DX βœ… Complete
3 Query, Cache & Event Intelligence βœ… Complete
4 Container, Entity & Config Inspectors πŸ”œ Next
5 OpenAPI, Security & Validation Reports πŸ”œ Planned
6 Production Diagnostics & APM πŸ”œ Planned
7 MonkeysCloud SaaS Integration πŸ”œ Planned

🀝 Contributing

  1. Fork & clone the repository
  2. Install dependencies: composer install
  3. Run the test suite: composer test
  4. Run static analysis: composer analyse
  5. Submit a PR against main

Please ensure all new collectors include corresponding unit tests and property hooks where applicable.


πŸ“„ License

MIT β€” Β© 2026 MonkeysCloud Team

Built with πŸ’ by MonkeysCloud


All versions of monkeyslegion-devtools with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
psr/http-message Version ^2.0
psr/http-server-middleware Version ^1.0
psr/http-server-handler Version ^1.0
psr/log Version ^3.0
monkeyscloud/monkeyslegion-cli Version ^2.0
monkeyscloud/monkeyslegion-mlc Version ^3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package monkeyscloud/monkeyslegion-devtools contains the following files

Loading the files please wait ...