PackageTrack
Sign in Get early access

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 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 26
  1. v2.1.0 26 Feb 2026
    Release notes

    What's Changed

    Full Changelog: v2.0.0...v2.1.0

    Open source →
  2. v2.0.0 21 Feb 2025
    Release notes

    What's Changed

    • Minimum PHP version is now 8.2.0
    • Added support for Laravel 12
    • Dropped support for Laravel 9
    • Updated dev dependencies
    Open source →
  3. v1.10.3 24 Jan 2025
    Release notes
    • Improves parsing of component attribute echo values
    Open source →
  4. v1.10.2 27 Nov 2024
    Release notes
    Open source →
  5. v1.10.1 17 Oct 2024
    Release notes
    • Restores support for PHP 8.1
    Open source →
  6. v1.10.0 16 Oct 2024
    Release notes

    This release adds a few new helper methods:

    • toDocument() on DocumentParser simplifies the process of converting an existing DocumentParser to a Document instance
      • toDocument will resolve structures on the document by default. To prevent this, simply supply false when calling (i.e., toDocument(false))
    • parseTemplate on DocumentParser parses the input like the existing parse method, but will return the DocumentParser instance instead of a node array

    New AttributeCompiler

    The AttributeCompiler is a new compiler service that can be used to compile attributes/parameters on a parsed ComponentNode. The AttributeCompiler implementation 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, $result would contain the following:

    ['parameter'=>'content','binding'=>$theVariable]
    
    Open source →
  7. v1.9.0 13 Oct 2024
    Release notes
    • 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
    Open source →
  8. v1.8.0 16 Apr 2024
    Release notes
    • Adds new helper methods to determine the type of an EchoNode
      • EchoNode::isRaw(), EchoNode::isTriple(), and EchoNode::isRegular()
    Open source →
  9. v1.7.2 15 Mar 2024
    Release notes
    • Improves validation of @parent directive. Thanks @ernix 🥳
    Open source →
  10. v1.7.1 04 Mar 2024
    Release notes
    • Corrects an issue with directory cleanup #29 (thanks @ernix !)
    Open source →
  11. v1.7.0 21 Feb 2024

    Nothing published for this version

  12. v1.6.1 11 Feb 2024

    Nothing published for this version

  13. v1.6.0 10 Dec 2023

    Nothing published for this version

  14. v1.5.1 21 Nov 2023

    Nothing published for this version

  15. v1.5.0 12 Sep 2023

    Nothing published for this version

  16. v1.4.0 13 May 2023

    Nothing published for this version

  17. v1.3.0 10 May 2023

    Nothing published for this version

  18. v1.2.0 02 Mar 2023

    Nothing published for this version

  19. v1.1.1 28 Feb 2023

    Nothing published for this version

  20. v1.1.0 26 Feb 2023

    Nothing published for this version

  21. v1.0.3 21 Feb 2023

    Nothing published for this version

  22. v1.0.2 19 Feb 2023

    Nothing published for this version

  23. v1.0.1 19 Feb 2023

    Nothing published for this version

  24. v1.0.0 18 Feb 2023

    Nothing published for this version

  25. v0.0.2 18 Nov 2022

    Nothing published for this version

  26. v0.0.1 18 Nov 2022

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive