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

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

Our great sponsors
  • Cloudways Cloudways' Black Friday Offer - 1st Choice of Developers
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • 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

    Cloudways' Black Friday Offer - 1st Choice of Developers. Cloudways: Devs' 1st choice for managed hosting! Pick from top-tier Cloud providers like DigitalOcean, AWS, and GCE. Limited-time deal: 40% OFF for 4 Months + 40 Free Migrations.

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