PackageTrack
Sign in Get early access

alleyinteractive/wp-match-blocks

Match WordPress blocks in the given content.

v4.3.0 491K downloads/mo #4860 most downloaded on Packagist alleyinteractive/wp-match-blocks

What this package is like to depend on

Last release 9 months ago

25 Nov 2025

Ships fairly regularly

a new release about every 5 months

Nearly every release is documented

notes for 10 of 10 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

10 releases · first in 2022

1 release in the last 12 months

see the full history below

Release timeline

10 releases · Aug 2022 to Nov 2025
2023 2024 2025 2026
Release Pre-release

Releases

latest 10
  1. v4.3.0 25 Nov 2025
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Added

    • __experimental_xpath parameter for matching blocks by XPath queries.
    • Matched_Blocks implementation of the Alley\WP\Types\Serialized_Blocks interface from the Type Extensions library.
    Open source →
  2. v4.2.0 09 Apr 2025
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Removed

    • Reverted changes from version 4.1 to avoid conflicts with the Alleyvate plugin.
    Open source →
  3. v4.1.0 09 Apr 2025
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Added

    • __experimental_xpath parameter for matching blocks by XPath queries.
    • Matched_Blocks implementation of the Alley\WP\Types\Serialized_Blocks interface from the Type Extensions library.
    Open source →
  4. v4.0.0 01 Nov 2024
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Changed

    • The minimum PHP version is now 8.2.
    Open source →
  5. v3.1.0 02 Nov 2023
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Changed

    • Reduce uses of validators within validators.
    Open source →
  6. v3.0.0 22 Aug 2023
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Changed

    • "Classic" blocks, which have inner HTML but no block name, are no longer considered empty.
    Open source →
  7. v2.0.1 06 Feb 2023
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Fixed

    • Missing alleyinteractive/composer-wordpress-autoloader dependency.
    Open source →
  8. v2.0.0 20 Dec 2022
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Added

    • with_innerhtml parameter for matching blocks by their inner HTML. Includes companion \Alley\WP\Validator\Block_InnerHTML validator.
    • has_innerblocks parameter for matching blocks by whether they have inner blocks. Includes companion \Alley\WP\Validator\Block_InnerBlocks_Count validator.
    • is_valid parameter for matching blocks by custom validation logic.
    • CONTAINS and NOT CONTAINS (case-sensitive), and LIKE and NOT LIKE (case-insensitive) operators to attrs parameter.

    Changed

    • Passing a single block instance will return matches within its inner blocks.

    Removed

    • PHP 7.4 support.
    Open source →
  9. v1.0.1 23 Aug 2022
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Fixed

    • Incorrect namespace in README.md examples.
    Open source →
  10. v1.0.0 23 Aug 2022
    Release notes

    Please see the changelog for details about this release.

    Open source →
    Release notes

    Initial release.

    Open source →

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