Home

Awesome

Check php code syntax

Continuous Integration

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:

Installation:

composer require gemorroj/syntax