PHPackages                             johnhenry/matrix-block-anchor - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. johnhenry/matrix-block-anchor

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

johnhenry/matrix-block-anchor
=============================

Anchor field that allows a user to copy a link to the ID of a Matrix block

3.1.2(1mo ago)1291proprietaryPHPPHP &gt;=8.2CI failing

Since Aug 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/john-henry/matrix-block-anchor)[ Packagist](https://packagist.org/packages/johnhenry/matrix-block-anchor)[ RSS](/packages/johnhenry-matrix-block-anchor/feed)WikiDiscussions craft-5 Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (14)Used By (1)

Matrix Block Anchor
===================

[](#matrix-block-anchor)

Matrix Block Anchor is a Craft CMS field that enables content editors to create anchor links directly to Matrix Blocks without needing developer assistance. It automatically retrieves the Matrix Block ID, allowing editors to easily copy the link and use it anywhere.

Features
--------

[](#features)

- **Automatic Anchor Generation** - Automatically retrieves Matrix Block IDs and generates anchor links without any developer intervention
- **Custom Anchor Support** - Allow editors to create meaningful, human-readable anchor IDs (like `#about-us` or `#pricing-section`) instead of auto-generated ones (Craft CMS 5)
- **SEO-Friendly** - Custom anchors improve SEO with descriptive anchor text and maintain consistent links even when content is reordered (Craft CMS 5)
- **Configurable Prefix** - Customize the anchor ID prefix (default: `blockIdAnchor`) to match your naming conventions
- **Validation Built-in** - Ensures anchor IDs don't start with numbers, contain spaces, or duplicate existing anchors within an entry (Craft CMS 5)
- **Easy Integration** - Works seamlessly with Matrix page builders - just add the field to any Matrix block type
- **Copy to Clipboard** - One-click copying of anchor links for editors to use anywhere on the site
- **Legacy Support** - Backward compatibility option for users upgrading from older plugin versions to prevent broken links (Craft CMS 5)

Perfect For
-----------

[](#perfect-for)

- Matrix-based page builders
- Long-form content with table of contents navigation
- Single-page websites with section navigation
- Documentation and help centers
- Landing pages with anchor-based navigation

Documentation
-------------

[](#documentation)

Full Documentation can be found at

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance89

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~71 days

Recently: every ~138 days

Total

9

Last Release

56d ago

Major Versions

1.0.1 → 2.0.02024-08-19

1.0.2 → 3.0.02025-11-10

PHP version history (2 changes)1.0.0PHP &gt;=8.0

1.0.1PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1865e9df2083058e2f49d3cd6563ba33356a415e01627d1787a38f2c530f7a89?d=identicon)[johnhenry](/maintainers/johnhenry)

---

Top Contributors

[![john-henry](https://avatars.githubusercontent.com/u/44709?v=4)](https://github.com/john-henry "john-henry (29 commits)")

---

Tags

matrixcmsCraftcraftcmscraft-pluginanchor

### Embed Badge

![Health badge](/badges/johnhenry-matrix-block-anchor/health.svg)

```
[![Health](https://phpackages.com/badges/johnhenry-matrix-block-anchor/health.svg)](https://phpackages.com/packages/johnhenry-matrix-block-anchor)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[doublesecretagency/craft-matrixcolors

Identify your matrix blocks by giving each type a different color.

4518.3k](/packages/doublesecretagency-craft-matrixcolors)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
