Download the PHP package tobento/app-profiler without Composer
On this page you can find all versions of the php package tobento/app-profiler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package app-profiler
App Profiler
The profiler is a development tool that gives detailed information about the execution of a HTTP request or console commands if enabled in the config file.
Table of Contents
- Getting Started
- Requirements
- Documentation
- App
- Profiler Boot
- Profiler Config
- Profiles
- Available Collectors
- Boots Collector
- Events Collector
- Logs Collector
- Jobs Collector
- Middleware Collector
- Request And Response Collector
- Routes Collector
- Session Collector
- Storage Queries Collector
- Translation Collector
- View Collector
- Creating A Collector
- Credits
Getting Started
Add the latest version of the app profiler project running this command.
Requirements
- PHP 8.0 or greater
Documentation
App
Check out the App Skeleton if you are using the skeleton.
You may also check out the App to learn more about the app in general.
Profiler Boot
The profiler boot does the following:
- installs and loads profiler config file
- implements interfaces based on config
- adds collectors based on config
- boots late profiler boot
- on response emit collects data from collectors and may inject the profiler toolbar
Profiler Config
The configuration for the profiler is located in the file at the default App Skeleton config location where you can configure your profiler for your application.
Profiles
The profiler will inject a toolbar from the current profile into HTML responses only. Any AJAX requests will update the profiles selection in the toolbar where you can switch between them.
For other kinds of contents such as JSON responses, use the profiles page. Just browse the the URL to see all profiles.
Available Collectors
By default, all collectors are defined in the Profiler Config. Even if they are set, they will only collect data if the service they collect data from are installed. But you may uncomment the collector if not needed at all.
Boots Collector
This collector will show the currently booted boots in the order they were called as well as all registered boots.
In the file:
Events Collector
If you have booted the App Event - Event Boot, this collector will show the currently dispatched events and listeners.
In the file:
Jobs Collector
If you have booted the App Queue - Queue Boot, this collector will show the currently pushed jobs.
In the file:
Logs Collector
If you have booted the App Logging - Logging Boot, this collector will show the currently logged messages from each logger specified.
In the file:
Middleware Collector
If you have booted the App Http - Middleware Boot, this collector will show the currently dispatched middlewares as well as the available aliases.
In the file:
Request And Response Collector
If you have booted the App Http - Http Boot, this collector will show the current request and response data.
In the file:
Routes Collector
If you have booted the App Http - Routing Boot, this collector will show all registered routes.
In the file:
Session Collector
If you have booted the App Http - Session Boot, this collector will show all session data.
In the file:
Storage Queries Collector
If you have booted the App Database - Database Boot, this collector will show all queries executed from any Storage Databases configured.
In the file:
Translation Collector
If you have booted the App Translation - Translation Boot, this collector will show all missed translations.
In the file:
View Collector
If you have booted the App View - View Boot, this collector will show the currently rendered views and assets.
In the file:
Creating A Collector
You may create your own data collector by implementing the or the .
By implementing the , the collector class will be created after the profiler gets booted, whereas the class implementing the will be created after the late profiler boot gets booted.
I recommend investing the available collectors for its implementation.
Credits
- Tobias Strub
- All Contributors
All versions of app-profiler with dependencies
tobento/app Version ^1.0.7
tobento/app-migration Version ^1.0.3
tobento/app-http Version ^1.1.0
tobento/app-view Version ^1.0.2
tobento/service-collection Version ^1.0.7
tobento/service-filesystem Version ^1.0.5
symfony/var-dumper Version ^6.0