NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2140 most downloaded on Packagist
Local debug server and dump functions for PHP: dumps, logs, Sentry events, emails, OpenTelemetry traces and profiles in your console.
Latest stable
1.19.0
Last release 8 days ago
14 Nov 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 58 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
74 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
add --port and --host options to trap test
--port and --host options to trap test (#277) (7c0cacd)trap()::profile() and receive Excimer profiles (bc88e7b)Format::Spx, the native SPX report as a tar (6e10c6b)trap()::profile(new Spx()) (6e10c6b)xdebug.output_dir (ff677d4)TRAP_HTTP_MAX_INFLATED_SIZE (#298) (edcd824)trap test going when a payload file cannot be opened (#285) (9dbc975)TrapLogger from user error handlers and fall back to error_log() when STDERR is closed or unwritable (3378140)#[QueryParam] (#284) (a5f220f)TRAP_MAIN_LOOP_INTERVAL from 100 to 1000 µs (0ac3ca2)socket_select() when idle (0ac3ca2)TRAP_MAIN_LOOP_INTERVAL (edcd824)TRAP_XHPROF_SORT option (ff677d4)Server namespace (842d562)TRAP_TCP_POLLING_INTERVAL and the polling period of the socket servers and clients from the configuration (0ac3ca2)Your coding agent can read these notes before it upgrades. Set up the MCP server →
require PHP 8.2, migrate tests to Testo
fix: stop the zlib warning on broken gzip OTLP bodies by @roxblnfk in https://github.com/buggregator/trap/pull/235
Full Changelog: https://github.com/buggregator/trap/compare/1.17.0...1.17.1
fix: make trap run start again and respect the Composer bin proxy autoloader by @roxblnfk in https://github.com/buggregator/trap/pull/220
trap run start again and respect the Composer bin proxy autoloader by @roxblnfk in https://github.com/buggregator/trap/pull/220Full Changelog: https://github.com/buggregator/trap/compare/1.16.1...1.17.0
trap run start again and respect the Composer bin proxy autoloader by @roxblnfk in #220Full Changelog: 1.16.1...1.17.0
trap run start again and respect the Composer bin proxy autoloader (#220)refactor: replace the in-tree DI container with internal/container by @roxblnfk in https://github.com/buggregator/trap/pull/218
Full Changelog: https://github.com/buggregator/trap/compare/1.16.0...1.16.1
feat: add PSR-3 Trap logger with STDERR fallback by @petrdobr in https://github.com/buggregator/trap/pull/212
Full Changelog: https://github.com/buggregator/trap/compare/1.15.2...1.16.0
Add Awesome PHP badge to README by @roxblnfk in https://github.com/buggregator/trap/pull/192
Full Changelog: https://github.com/buggregator/trap/compare/1.15.1...1.15.2
Full Changelog: 1.15.1...1.15.2
Fix Symfony 8 compatibility by @roxblnfk in https://github.com/buggregator/trap/pull/210
Full Changelog: https://github.com/buggregator/trap/compare/1.15.0...1.15.1
Update dependencies by @roxblnfk in https://github.com/buggregator/trap/pull/208
Full Changelog: https://github.com/buggregator/trap/compare/1.14.0...1.15.0
Use empty senders list by @roxblnfk in https://github.com/buggregator/trap/pull/200
Full Changelog: https://github.com/buggregator/trap/compare/1.13.18...1.14.0
Full Changelog: 1.13.18...1.14.0
Use internal/destroy by @roxblnfk in https://github.com/buggregator/trap/pull/194
internal/destroy by @roxblnfk in https://github.com/buggregator/trap/pull/194Full Changelog: https://github.com/buggregator/trap/compare/1.13.17...1.13.18
Add CONTRIBUTING.md by @DimaTiunov in https://github.com/buggregator/trap/pull/189
getenv() for getting environment variable values by @vjik in https://github.com/buggregator/trap/pull/193Full Changelog: https://github.com/buggregator/trap/compare/1.13.16...1.13.17
getenv() for getting environment variable values by @vjik in #193Full Changelog: 1.13.16...1.13.17
getenv() for getting environment variable values (#193)Add casters for new public protobuf RepeatedField DTO by @roxblnfk in https://github.com/buggregator/trap/pull/187
Full Changelog: https://github.com/buggregator/trap/compare/1.13.15...1.13.16
Fix Sentry envelope parsing by @roxblnfk
Full Changelog: https://github.com/buggregator/trap/compare/1.13.14...1.13.15
Full Changelog: https://github.com/buggregator/trap/compare/1.13.14...1.13.15
Fix sentry envelope detection by @roxblnfk in https://github.com/buggregator/trap/pull/183
Full Changelog: https://github.com/buggregator/trap/compare/1.13.13...1.13.14
Build binaries for macos by @roxblnfk in https://github.com/buggregator/trap/pull/180
Full Changelog: https://github.com/buggregator/trap/compare/1.13.12...1.13.13
Fix binary building by @roxblnfk in https://github.com/buggregator/trap/pull/167
Full Changelog: https://github.com/buggregator/trap/compare/1.13.6...1.13.12
Full Changelog: https://github.com/buggregator/trap/compare/1.13.11...1.13.12
Full Changelog: https://github.com/buggregator/trap/compare/1.13.10...1.13.11
Full Changelog: https://github.com/buggregator/trap/compare/1.13.10...1.13.11
Nothing published for this version
Full Changelog: https://github.com/buggregator/trap/compare/1.13.8...1.13.9
Full Changelog: https://github.com/buggregator/trap/compare/1.13.8...1.13.9
Full Changelog: https://github.com/buggregator/trap/compare/1.13.7...1.13.8
Full Changelog: https://github.com/buggregator/trap/compare/1.13.7...1.13.8
Full Changelog: https://github.com/buggregator/trap/compare/1.13.6...1.13.7
Full Changelog: https://github.com/buggregator/trap/compare/1.13.6...1.13.7
Maintenance by @roxblnfk in https://github.com/buggregator/trap/pull/170
Full Changelog: https://github.com/buggregator/trap/compare/1.13.5...1.13.6
Fix PHAR building by @roxblnfk in https://github.com/buggregator/trap/pull/167
Full Changelog: https://github.com/buggregator/trap/compare/1.13.4...1.13.5
Use _ENV to get VAR_DUMPER envs by @roxblnfk in https://github.com/buggregator/trap/pull/163
Full Changelog: https://github.com/buggregator/trap/compare/1.13.3...1.13.4
SMTP: improve parsing of multiline headers by @roxblnfk in https://github.com/buggregator/trap/pull/160
Full Changelog: https://github.com/buggregator/trap/compare/1.13.2...1.13.3
Make Senders lazy by @roxblnfk in https://github.com/buggregator/trap/pull/158
Full Changelog: https://github.com/buggregator/trap/compare/1.13.1...1.13.2
Allow _ in email names in MailToFileSender by @gam6itko in https://github.com/buggregator/trap/pull/155
_ in email names in MailToFileSender by @gam6itko in https://github.com/buggregator/trap/pull/155Full Changelog: https://github.com/buggregator/trap/compare/1.13.0...1.13.1
Add MailToFile Sender by @gam6itko in https://github.com/buggregator/trap/pull/151
Full Changelog: https://github.com/buggregator/trap/compare/1.12.0...1.13.0
Expose command trap --version by @roxblnfk in https://github.com/buggregator/trap/pull/147
trap --version by @roxblnfk in https://github.com/buggregator/trap/pull/147Full Changelog: https://github.com/buggregator/trap/compare/1.11.1...1.12.0
Resolve PHP 8.4 deprecations by @roxblnfk in https://github.com/buggregator/trap/pull/144
Full Changelog: https://github.com/buggregator/trap/compare/1.11.0...1.11.1
Add config for main loop interval and socket polling interval by @roxblnfk in https://github.com/buggregator/trap/pull/141
Full Changelog: https://github.com/buggregator/trap/compare/1.10.2...1.11.0
Fix Psalm issues by @Kaspiman in https://github.com/buggregator/trap/pull/131
Full Changelog: https://github.com/buggregator/trap/compare/1.10.1...1.10.2
Better HTTP/SMTP Multipart parsing by @roxblnfk in https://github.com/buggregator/trap/pull/128
Full Changelog: https://github.com/buggregator/trap/compare/1.10.0...1.10.1
Change the discord badge to static by @roxblnfk in https://github.com/buggregator/trap/pull/118
Full Changelog: https://github.com/buggregator/trap/compare/1.9.0...1.10.0
file-body sender (#117)Make release tags without prefix v by @lotyp in https://github.com/buggregator/trap/pull/107
v by @lotyp in https://github.com/buggregator/trap/pull/107Full Changelog: https://github.com/buggregator/trap/compare/1.8.0...1.9.0
Add tr() and td() functions by @roxblnfk in https://github.com/buggregator/trap/pull/102
trap()->code() sugar by @lee-to in https://github.com/buggregator/trap/pull/103Full Changelog: https://github.com/buggregator/trap/compare/v1.7.5...v1.8.0
fix environments in build-phar-release
suppress warnings if Closure::bind() is run with static callable
remove unnecessary escape symbols from action file for phar building
fixed path to keys.asc.gpg to sign phar
## 1.7.1 (2024-05-24) ### Bug Fixes * update release-token
add box-project/box, composer-require-checker and composer-normalize PHARs
trap()->context() methodmake phar command (d86a1e0)Info::version() method; move version.json into resources dir (eb129ba)console renderer by default again. (b6ad654)support shield (#83) (23ebc91)Nothing published for this version
Added command joke by @k2gl in #55
joke by @k2gl in #55--ui option: trap --ui=8080bin/trap to 755 by @dimajolkin in #58psalm-baseline.xml by @dimajolkin in #57Full Changelog: https://github.com/buggregator/trap/compare/1.5.0...1.6.0
Added the ability to run the program listening on multiple ports. By @roxblnfk in #54
Sometimes, it's convenient to run Trap on the same ports that Buggregator uses by default. Well, now that's also possible:
vendor/bin/trap -p1025 -p9912 -p9913 -p8000
[!NOTE] Parameter
-p8000is incompatible with--ui
Full Changelog: https://github.com/buggregator/trap/compare/1.4.6...1.5.0
Fixed headers rendering in console renderer
Full Changelog: https://github.com/buggregator/trap/compare/1.4.5...1.4.6
Update frontend to v1.15.2 and fix VarDump event time by @roxblnfk in #50
Full Changelog: https://github.com/buggregator/trap/compare/1.4.4...1.4.5
Update frontend files (--ui flag) from buggregator/frontend:1.14.3 plus a few my own few changes
Update frontend files (--ui flag) from buggregator/frontend:1.14.3 plus a few my own few changes
Full Changelog: https://github.com/buggregator/trap/compare/1.4.3...1.4.4
Fixed bug when the trap()->return() function sent dumps twice
Fixed bug when the trap()->return() function sent dumps twice
Full Changelog: https://github.com/buggregator/trap/compare/1.4.2...1.4.3
Removed the replaces section from composer.json, as it can conflict with other packages that have overlaps in the section. Added roxblnfk/unpoly as a
Removed the replaces section from composer.json, as it can conflict with other packages that have overlaps in the section.
Added roxblnfk/unpoly as a dev requirement (dev dependency won't affect projects) to remove polyfill packages from Trap,
added roxblnfk/unpoly into suggest section if user still want to remove unnecessary packages
By @roxblnfk in https://github.com/buggregator/trap/pull/49
Full Changelog: https://github.com/buggregator/trap/compare/1.4.1...1.4.2
Frontend update by @roxblnfk in https://github.com/buggregator/trap/pull/47
Full Changelog: https://github.com/buggregator/trap/compare/1.4.0...1.4.1
Add trap()->stackTrace() method that adds stack trace to the dump by @roxblnfk in https://github.com/buggregator/trap/pull/41
trap()->stackTrace() method that adds stack trace to the dump by @roxblnfk in https://github.com/buggregator/trap/pull/41trap()->return() that returns the dumped variable by @roxblnfk in https://github.com/buggregator/trap/pull/46Full Changelog: https://github.com/buggregator/trap/compare/1.3.4...1.4.0
Fix compatibility with Symfony Console 7.0 by @msmakouz in https://github.com/buggregator/trap/pull/45 Drop symfony/console 5.4
Full Changelog: https://github.com/buggregator/trap/compare/1.3.3...1.3.4
Support for symfony/console 7 by @roxblnfk in https://github.com/buggregator/trap/pull/44 Add nunomaduro/termwind v2 because v1 blocks symfony/console
symfony/console 7 by @roxblnfk in https://github.com/buggregator/trap/pull/44symfony/console 7symfony/console 7Full Changelog: https://github.com/buggregator/trap/compare/1.3.2...1.3.3
Socket Server fix: fast connection closing with clients, by @roxblnfk in https://github.com/buggregator/trap/pull/42 In some cases, the connection to
Full Changelog: https://github.com/buggregator/trap/compare/1.3.1...1.3.2
UI fix: event locks now work correctly by @roxblnfk in #37, #38 !Picture) Accompanying fixes:
UI fix: event locks now work correctly by @roxblnfk in #37, #38 Accompanying fixes:
Full Changelog: https://github.com/buggregator/trap/compare/1.3.0...1.3.1
Websocket support has been added by @roxblnfk in https://github.com/buggregator/trap/pull/34
Websocket support has been added by @roxblnfk in https://github.com/buggregator/trap/pull/34
An experimental Web UI, similar to the one in Buggregator Server, has been introduced.
You can launch it by adding the --ui flag when starting the Trap Server.
In this case, events will be sent simultaneously to the console and to the open websocket connections of browser interfaces.
vendor/bin/trap --ui
Supported messages:
<div align="center"> <img alt="schema" src="https://github.com/buggregator/trap/assets/4152481/6f2a29da-b05a-45e3-a65a-b73d7398c8e8" style="width: 3in" /> </div>
Full Changelog: https://github.com/buggregator/trap/compare/1.2.2...1.3.0
The packages symfony/polyfill-php72..php80 have been added to the replace section of the Composer. Polyfills for PHP < 8.1 are useless, as our package
The packages symfony/polyfill-php72..php80 have been added to the replace section of the Composer.
Polyfills for PHP < 8.1 are useless, as our package requires PHP >= 8.1, and even harmful, as they prevent the installation of some Symfony 5.4 LTS packages
Full Changelog: https://github.com/buggregator/trap/compare/1.2.1...1.2.2
Source context provider provides true source path and line by @roxblnfk in https://github.com/buggregator/trap/pull/31
Fixed:
trap()->once() by @roxblnfk in https://github.com/buggregator/trap/pull/31Full Changelog: https://github.com/buggregator/trap/compare/1.2.0...1.2.1
One column per quarter.