PHP code example of michaelhall / coredump

1. Go to this page and download the library: Download michaelhall/coredump 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/ */

    

michaelhall / coredump example snippets

 php


elHall\CoreDump\CoreDump;

// Creates a core dump and add some extra content.
// Superglobals like $_SERVER, $_GET, $_POST etc. are added automatically.
$coreDump = new CoreDump();
$coreDump->add('Foo', 'Bar');

// Outputs the core dump.
echo $coreDump;

// Saves the core dump with an auto-generated file name in the current directory.
// Also returns the file name.
$coreDump->save();

// As above, but saves the core dump in the /tmp-directory.
$coreDump->save('/tmp');