Skip to content

Latest commit

 

History

History

php-parser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@markuplint/php-parser

npm version

Use markuplint with PHP.

Install

$ npm install -D @markuplint/php-parser

$ yarn add -D @markuplint/php-parser

Usage

Add parser option to your configuration.

{
  "parser": {
    ".php$": "@markuplint/php-parser"
  }
}

⚠️ Unsupported syntaxes

It's not able to support syntaxes if one's attribute is complex.

✅ Available codes

<div attr="<?php echo value; ?>"></div>
<div attr='<?php echo value; ?>'></div>
<div attr="<?php echo value; ?>-<?php echo value2; ?>-<?php echo value3; ?>"></div>

❌ Unavailable codes

If it doesn't nest by quotations.

<div attr=<?php echo value; ?>></div>