https://github.com/gemorroj/syntax
Check php code syntax
https://github.com/gemorroj/syntax
php-validator syntax-checker
Last synced: about 1 month ago
JSON representation
Check php code syntax
- Host: GitHub
- URL: https://github.com/gemorroj/syntax
- Owner: Gemorroj
- License: lgpl-3.0
- Created: 2013-04-20T10:14:08.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-03-03T20:21:21.000Z (3 months ago)
- Last Synced: 2025-03-24T05:03:49.579Z (2 months ago)
- Topics: php-validator, syntax-checker
- Language: PHP
- Size: 50.8 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Check php code syntax
[](https://github.com/Gemorroj/Syntax/actions?query=workflow%3A%22Continuous+Integration%22)
### Example:
```php
check('');
print_r($resultCheck);$resultCheckFile = $syntax->checkFile('example.php');
print_r($resultCheckFile);
```### Requirements:
- PHP >= 8.0.2
### Installation:
```bash
composer require gemorroj/syntax
```