Is there an equivalent to "console.log" (from JS) in PHP?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/PHPhelp

Our great sponsors
  • Cloudways - The Cloudways Speed Up Challenge 2022
  • Scout APM - Truly a developer’s best friend
  • Zigi - The context switching struggle is real
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarQube - Static code analysis for 29 languages.
  • PHPDebugConsole

    Browser/javascript-like logger/console class for PHP

    Take a look at xdebug There's also a console port that logs $_POST and request headers, etc: https://www.bradkent.com/php/debug

  • PHP Debug Bar

    Debug bar for PHP

    You can also try something like http://phpdebugbar.com/ which maybe will be somewhere in the middle.

  • Cloudways

    The Cloudways Speed Up Challenge 2022. Do you have what it takes to speed up a sluggish WooCommerce store so well that it gives relentless online growth? If yes, then now's your chance to prove your optimization skills by participating in the year's biggest speed up challenge and get rewarded BIG for your efforts.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts