Download the PHP package ilnytskyi/xtc without Composer

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

xDebug Chromium Trace Converter

This is a tool for converting xDebug traces into Chromium format that can be visualized in browser's performance tab.

Features

Requirements

Installation via Composer

Installation from git

  1. Clone or download this repository to your local machine
  2. Add xtc script to suitable location of your project or link globally

  3. Use xtc script commands to convert your xDebug traces

Usage

For CLI scripts it's recommended to wrap call into trace command:

To see exact wrapper command use --debug flag. Try to do self check

The xtc wraps call with correct xDebug params. The output should be like this:

Now the /app_root/var/xdebug_dumps/xtc_trace.1699803846.xt.json file can be visualized in a trace viewer.

Generate xDebug traces manually

To convert an xDebug trace file, use the xtc command and specify the input:

To automatically move converted JSON traces specify the --out options with filename or folder

To watch specific directory

Use same parameters as in convert command to apply to profiles.

Arguments and Return values:

xDebug trace file might collect return values of functions is running with xdebug.collect_return=1 INI setting.\ The arguments can also be collected with xdebug.collect_params=1 INI setting.\ When trace is converted with --args=1 option you can see the values were passed to function and returned.\ Timeline visualization might be extremely useful for debugging or reverse engineering

Use --help option to see more details about command

Notice about performance measurement:

Here is an example of tracing of same script:

Although the visualized traces of both profilers look similar, it's noticeable that xDebug took about x10 to execute.

Visualisation

  1. Chrome DevTools Performance Tab Ctr+Shift+J -> Performance
  2. https://ui.perfetto.dev
  3. https://www.speedscope.app
  4. Any other Chromium trace (Google Trace Event Format) viewers

Inspired By


All versions of xtc with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
ext-tokenizer Version *
ext-zlib Version *
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 ilnytskyi/xtc contains the following files

Loading the files please wait ....