buggregator / trap Goto Github PK
View Code? Open in Web Editor NEWBuggregator local debug server for PHP projects as composer package
Home Page: https://buggregator.dev
License: BSD 3-Clause "New" or "Revised" License
Buggregator local debug server for PHP projects as composer package
Home Page: https://buggregator.dev
License: BSD 3-Clause "New" or "Revised" License
There is Psalm baseline. We need to resolve it.
Add support for secure connections
Print a random joke about PHP
Or print a joke of the day on start
It is necessary to remove the replaces
block, as it can conflict with other packages that have overlaps in the replaces
section.
It would also be desirable to find or create a separate reliable package responsible for removing unnecessary polyfills.
Line 58 in 0cc8c3e
trap()::profile()
methods)I propose integrating PestPHP into buggregator/trap
.
PestPHP is known for its elegant syntax and pretty console outputs, enhancing both readability and debugging capabilities.
Please refer to this repository for a guide on integrating PestPHP with Laravel packages: Laravel Package Template with PestPHP.
I propose adding PHPStan to our development toolchain alongside Psalm.
Key benefits include:
buggregator/trap
is included as a dev dependency.This tool setup would increase the robustness of our code analysis without major overhead.
It miht be useful for elimination of Docker requirement. In that case we shall use PHP only on backend
Checklist:
It should be used in case if any dispatcher won't detect request type and will render data as is
There are a few profiling options where profiling files may be stored:
xhprof.output_dir = ...
xdebug.output_dir = ...
Need to scan it sporadically and push events about new files
There are broken links because of CORS.
Need to move the logo into https://github.com/buggregator/trap/tree/master/resources/payloads and use it as a test payload and as a picture for the logo
Executed chmod +x ./bin/trap
for more easy execution ./bin/trap
without added php before command
Need to check that auto-push works well
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 current example:
trap:
image: wayofdev/php-dev:8.3-cli-alpine-latest
container_name: ${COMPOSE_PROJECT_NAME}-trap
restart: on-failure
networks:
- default
ports:
- '${TRAP_PORT:-9912}:9912'
- '${TRAP_UI_PORT:-8000}:8000'
volumes:
- ./:/app:rw
- ~/.composer:/.composer
env_file:
- .env
entrypoint:
- /app/vendor/bin/trap
- --ui
- --port=${TRAP_PORT:-9912}
- --sender=server
- --sender=console
Also, currently, there is no way to customize UI port number. 8000 port is used by many other applications, and it would be nice, to be able to customize it via console command attributes and also via ENV variables.
Should be optional
In the case when a user locks an event, a list of event identifiers for deletion is sent to the endpoint for clearing all events. This needs to be taken into account.
To do this, we need to consider passing additional parameters from the request payload.
Need to config CI pipelines to build trap.phar
Add support for https://github.com/yiisoft/friendly-exception
Add the trap()
function into ForgottenDebugOutputInspector
there https://github.com/kalessil/phpinspectionsea
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.