Download the PHP package webware/traccio without Composer

On this page you can find all versions of the php package webware/traccio. 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 traccio

Webware\Traccio

Tracy Debugger integration and profiler for Mezzio applications.

Traccio wires Tracy into a Mezzio middleware pipeline and provides purpose-built debug bar panels for configuration, routes, HTTP requests, and SQL query profiling.


Requirements

Requirement Version
PHP ~8.2 \|\| ~8.3 \|\| ~8.4 \|\| ~8.5
tracy/tracy ^2.11
mezzio/mezzio ^3.26 (dev / host app)

Database profiling additionally requires a PhpDb adapter and the php-db/phpdb package.


Installation

If you are using the laminas-component-installer plugin it will prompt you to inject the ConfigProvider automatically. Otherwise add it manually (see Configuration).


Configuration

1. Register the ConfigProvider

Add Webware\Traccio\ConfigProvider to your application's config aggregator:

2. Tracy settings

Create config/autoload/tracy.global.php (or add to an existing autoload file):

Set 'debug' => true or enable Mezzio development mode in config.


Middleware pipeline

Add the two middleware classes to your pipeline. TracyDebuggerMiddleware should come early so it initialises Tracy before your application logic runs. RequestPanelMiddleware should be placed very late in the pipeline so the final state of the Request is reflected in the panel (this is not required for Traccio to work).


Debug panels

All panels are registered automatically when their dependencies are available in the container. No extra wiring is needed beyond the steps above.

Panel Tracy bar label Shows
ConfigPanel Config Full application config array
RoutesPanel Routes All registered Mezzio routes
RequestPanel Request PSR-7 request headers, method, URI, body
SqlProfilerPanel Database SQL query groups, timings, parameters

SQL Profiler panel

The database panel groups identical queries together and displays:

Parameter tokens reflect the style used in the original query:

Parameter style Displayed token
Positional ? (stored as "0", "1", …) ?1, ?2, …
Named (stored as "C_1", "name", …) :C_1, :name

Enabling database profiling

Database profiling requires:

  1. A PhpDb adapter registered in the container as PhpDb\Adapter\AdapterInterface.
  2. The ProfilingDelegator wrapping that adapter to attach a Profiler instance.

Enable the delegator in your application's config (it is commented out in ConfigProvider by default):

Once the delegator is active, the SQL panel will appear in the Tracy bar automatically whenever debug is true.


License

BSD-3-Clause — see LICENSE for details.


All versions of traccio with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
tracy/tracy Version ^2.11.0
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 webware/traccio contains the following files

Loading the files please wait ...