trap
trap copied to clipboard
Buggregator local debug server for PHP projects as composer package
Add the `trap()` function into [`ForgottenDebugOutputInspector`](https://github.com/kalessil/phpinspectionsea/blob/b34274871f5689febd09d091a3c52961d7d2bf59/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/apiUsage/debug/ForgottenDebugOutputInspector.java#L32C14-L32C44) there https://github.com/kalessil/phpinspectionsea
There is Psalm baseline. We need to resolve it.
It would be good to have ability to use `TRAP_*` env variables to configure /vendor/bin/trap For example: ``` TRAP_SENDERS=console,server TRAP_DEBUG_PORTS=9912,xxxx,yyyy TRAP_UI_PORT=8000 ``` Which would simplify usage in docker, here is...
Need to config CI pipelines to build `trap.phar`
For those who starts using trap for first time, it would be useful to list all available commands through `console --help`, inside README.md, so that developers could easily find documentation...
## What was changed Added a new console command `joke` that emits a random joke via `trap()` function ## Checklist - Closes #15 - Tested - [ ] Tested manually...
Print a random joke about PHP --- Or print a joke of the day on start
Add CS checker and fixer that will: - [x] Check the code for compliance with PER-2 https://github.com/buggregator/trap/pull/67 - [x] #68 - Take into account some custom aspects: - We use...
- [x] dependencies [![dependency status](https://php.package.health/packages/buggregator/trap/dev-master/status.svg)](https://php.package.health/packages/buggregator/trap/dev-master) - [x] phpunit - [x] coverage - [x] psalm - [ ] #53 - [x] security - [ ] #56
### Helpers [Thoughts](https://www.patreon.com/posts/trap-profiling-97033567) - [x] #41 (required to be prepared for adding `trap()::profile()` methods) - [SPX](https://github.com/NoiseByNorthwest/php-spx) - XHProf (supported by Buggregator Server and UI) - XDebug (local files, cachegrind format,...