@markuplint/php-parser
TypeScript icon, indicating that this package has built-in type declarations

4.5.0 • 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>

Readme

Keywords

none

Package Sidebar

Install

npm i @markuplint/php-parser

Weekly Downloads

1,197

Version

4.5.0

License

MIT

Unpacked Size

3.69 kB

Total Files

7

Last publish

Collaborators

  • yusukehirao