Awesome
Check php code syntax
Example:
<?php
use Syntax\Php;
$syntax = new Php();
$resultCheck = $syntax->check('<?php echo 1; ?>');
print_r($resultCheck);
$resultCheckFile = $syntax->checkFile('example.php');
print_r($resultCheckFile);
Requirements:
- PHP >= 8.0.2
Installation:
composer require gemorroj/syntax