gemorroj/syntax

PHP代码语法检查器。

4.4.0 2023-12-22 13:59 UTC

This package is auto-updated.

Last update: 2024-08-27 12:07:06 UTC


README

Continuous Integration

示例

<?php
use Syntax\Php;

$syntax = new Php();

$resultCheck = $syntax->check('<?php echo 1; ?>');
print_r($resultCheck);

$resultCheckFile = $syntax->checkFile('example.php');
print_r($resultCheckFile);

要求

  • PHP >= 8.0.2

安装

composer require gemorroj/syntax