@markuplint/php-parser

4.6.19 • Public • Published

@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>

/@markuplint/php-parser/

    Package Sidebar

    Install

    npm i @markuplint/php-parser

    Weekly Downloads

    1,015

    Version

    4.6.19

    License

    MIT

    Unpacked Size

    8.06 kB

    Total Files

    8

    Last publish

    Collaborators

    • yusukehirao