stillat/blade-parser
v2.1.0
1.9M downloads/mo
#1812 most downloaded on Packagist
Stillat/blade-parser
What this package is like to depend on
Last release 5 months ago
26 Feb 2026
Ships unpredictably
gaps range from 1 weeks to 12 months
Some releases are documented
notes for 10 of 26 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
26 releases · first in 2022
1 release in the last 12 months
see the full history below
Release timeline
26 releases · Nov 2022 to Feb 2026Releases
latest 26-
v2.1.026 Feb 2026Release notes
Open source → -
v2.0.021 Feb 2025Release notes
Open source →What's Changed
- Minimum PHP version is now
8.2.0 - Added support for Laravel 12
- Dropped support for Laravel 9
- Updated dev dependencies
- Minimum PHP version is now
-
v1.10.324 Jan 2025 -
v1.10.227 Nov 2024 -
v1.10.117 Oct 2024 -
v1.10.016 Oct 2024Release notes
Open source →This release adds a few new helper methods:
toDocument()onDocumentParsersimplifies the process of converting an existingDocumentParserto aDocumentinstancetoDocumentwill resolve structures on the document by default. To prevent this, simply supplyfalsewhen calling (i.e.,toDocument(false))
parseTemplateonDocumentParserparses the input like the existingparsemethod, but will return theDocumentParserinstance instead of a node array
New
AttributeCompilerThe
AttributeCompileris a new compiler service that can be used to compile attributes/parameters on a parsedComponentNode. TheAttributeCompilerimplementation will use the core Laravel compiler for content that contains interpolated values.Usage:
<?php use Stillat\BladeParser\Parser\DocumentParser; use Stillat\BladeParser\Compiler\CompilerServices\AttributeCompiler; $template = <<<'TEMPLATE' <prefix:component parameter="content" :binding="$theVariable" /> TEMPLATE; $params = (new DocumentParser) ->onlyParseComponents() ->registerCustomComponentTags(['prefix']) ->parseTemplate($template) ->toDocument() ->getComponents() ->first() ->parameters; $compiler = new AttributeCompiler; $result = $compiler->compile($params);
After compilation,
$resultwould contain the following:['parameter'=>'content','binding'=>$theVariable] -
v1.9.013 Oct 2024Release notes
Open source →- Bumps the minimum PHP version to 8.2
- Migrates the test suite to Pest
- Code cleanup/formatting 🧹
- Improves parsing of HTML fragments and attributes/parameters
-
v1.8.016 Apr 2024Release notes
Open source →- Adds new helper methods to determine the type of an
EchoNodeEchoNode::isRaw(),EchoNode::isTriple(), andEchoNode::isRegular()
- Adds new helper methods to determine the type of an
-
v1.7.215 Mar 2024 -
v1.7.104 Mar 2024 -
v1.7.021 Feb 2024Nothing published for this version
-
v1.6.111 Feb 2024Nothing published for this version
-
v1.6.010 Dec 2023Nothing published for this version
-
v1.5.121 Nov 2023Nothing published for this version
-
v1.5.012 Sep 2023Nothing published for this version
-
v1.4.013 May 2023Nothing published for this version
-
v1.3.010 May 2023Nothing published for this version
-
v1.2.002 Mar 2023Nothing published for this version
-
v1.1.128 Feb 2023Nothing published for this version
-
v1.1.026 Feb 2023Nothing published for this version
-
v1.0.321 Feb 2023Nothing published for this version
-
v1.0.219 Feb 2023Nothing published for this version
-
v1.0.119 Feb 2023Nothing published for this version
-
v1.0.018 Feb 2023Nothing published for this version
-
v0.0.218 Nov 2022Nothing published for this version
-
v0.0.118 Nov 2022Nothing published for this version