PHPackages                             stillat/blade-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. stillat/blade-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

stillat/blade-parser
====================

v2.1.0(2mo ago)1451.2M—1.3%4[1 PRs](https://github.com/Stillat/blade-parser/pulls)8MITPHPPHP ^8.2.0CI failing

Since Nov 18Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/Stillat/blade-parser)[ Packagist](https://packagist.org/packages/stillat/blade-parser)[ GitHub Sponsors](https://github.com/johnathonkoster)[ RSS](/packages/stillat-blade-parser/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (29)Used By (8)

[![](.art/banner.png)](.art/banner.png)

Blade Parser is library for Laravel that makes it easy to parse, analyze, and manipulate Blade templates.

The library is composed of many major components:

- **Parser**: A Blade parser that produces a list of nodes, which can be analyzed to help make decisions surrounding a template.
- **Documents**: A powerful abstraction that makes it much simpler to interact with the details of a single parsed Blade template.
- **Workspaces**: A simple set of APIs that make it effortless to work with multiple parsed Blade templates at once.
- **Compiler**: A highly configurable Blade compiler implementation, with support for precompilers, extensions, and existing third-party packages.
- **Validator**: An extensible system for validating Blade documents, with default validators capable of detecting unpaired conditions, invalid component parameter spacing, and much more.

Simple to Use
-------------

[](#simple-to-use)

Parsing Blade templates is incredibly simple using the Documents API. As an example, this is all that is needed to parse a template:

```
