Skip to content

Instantly share code, notes, and snippets.

View Konafets's full-sized avatar

Stefano Kowalke Konafets

View GitHub Profile
@ProcessEight
ProcessEight / Debug API requests.md
Last active January 18, 2021 13:20
Example scripts showing how to debug API calls with Xdebug

Debugging with Xdebug

Debug from the command line in Xdebug

Just export the XDEBUG_CONFIG variable:

export XDEBUG_CONFIG="idekey=PHPSTORM"

Remember to enable Xdebug first:

<?php
namespace VENDOR\EXTENSION\ViewHelpers;
class DebugbarViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
{
/**
* Displays the debug informationen in the PHP Debug Bar
*
* @param null $content
@tomasnorre
tomasnorre / README.md
Last active September 26, 2019 15:10

What does it do?

This littel script fetches all packages, listed on packagist with type typo3-cms-extension, and iterates over them and collect download data for every single packages.

It will echo it as csv, so it can easily be parsed into a .csv file for better sorting etc.

How to generate csv file

$ php fetchExtensionDownloadDataFromPackagist.php &gt; downloadData.csv