gemorroj/syntax

PHP code syntax checker.

4.4.0 2023-12-22 13:59 UTC

This package is auto-updated.

Last update: 2024-10-27 12:31:37 UTC


README

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:

  • PHP >= 8.0.2

Installation:

composer require gemorroj/syntax