PHP code example of matthiasnoback / php-parser-instantiation-printer
1. Go to this page and download the library: Download matthiasnoback/php-parser-instantiation-printer 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/ */
matthiasnoback / php-parser-instantiation-printer example snippets
new PhpParser\Node\Stmt\Expression(
new PhpParser\Node\Expr\Assign(
new PhpParser\Node\Expr\Variable('instance'),
new PhpParser\Node\Expr\New_(
new PhpParser\Node\Name('self')
)
)
);
bash
bin/print-node-instantiation-code temp.php