PHP code example of tacnoman / dephpugger

1. Go to this page and download the library: Download tacnoman/dephpugger library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tacnoman / dephpugger example snippets



# ...
xdebug_break(); # This code is a breakpoint like ipdb in Python and Byebug in Ruby
# ....
bash
$ sudo apt-get install php-7.2-cli php-dev php-pear
$ sudo pecl install xdebug
bash
$ php --info | grep php.ini

Configuration File (php.ini) Path => /etc/php/7.2/cli
Loaded Configuration File => /etc/php/7.2/cli/php.ini
sh
$ php vendor/bin/dephpugger cli myJob.php

# Or in global

$ dephpugger cli myJob.php