PHP code example of mck89 / peast

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

    

mck89 / peast example snippets




$source = "var a = 1"; // Your JavaScript code
$ast = Peast\Peast::latest($source, $options)->parse(); // Parse it!

PHP Fatal error:  Maximum function nesting level of '512' reached, aborting!