PHPackages                             fromholdio/silverstripe-globalanchors - 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. fromholdio/silverstripe-globalanchors

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

fromholdio/silverstripe-globalanchors
=====================================

A SilverStripe module that allows developers to define a static list of global html anchors - #nav, #content, etc - allowing them to be used for constructing links and etc by CMS users.

2.1.0(7mo ago)01.4k1[1 issues](https://github.com/fromholdio/silverstripe-globalanchors/issues)2BSD-3-ClausePHP

Since Feb 18Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/fromholdio/silverstripe-globalanchors)[ Packagist](https://packagist.org/packages/fromholdio/silverstripe-globalanchors)[ Docs](https://github.com/fromholdio/silverstripe-globalanchors)[ RSS](/packages/fromholdio-silverstripe-globalanchors/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (8)Used By (2)

silverstripe-globalanchors
==========================

[](#silverstripe-globalanchors)

A SilverStripe module that allows developers to define a static list of global html anchors - #nav, #content, etc - allowing them to be used for constructing links and etc by CMS users.

Intended to work inconjunction with modules that allow users to build links, or extending the create link functions in WYSIWYG editor, making global anchors available for link construction rather than only anchors within that content area.

Requirements
------------

[](#requirements)

SilverStripe 4 or 5 or 6

Installation
------------

[](#installation)

`composer require fromholdio/silverstripe-globalanchors`

No anchors are setup by default - to complete the install, you need to setup your anchors config:

```
Fromholdio\GlobalAnchors\GlobalAnchors:
  anchors:
    nav: 'Main Navigation'
    content: 'Page Content'
    footer: 'Footer'
```

Usage example
-------------

[](#usage-example)

Documentation will be forthcoming, but also, it's just one class and pretty lean. Check the class itself to see all options at the moment.

Key uses are below:

### Use to fuel values in a dropdown

[](#use-to-fuel-values-in-a-dropdown)

```
DropdownField::create(
    'GlobalAnchorKey',
    'Global Anchor',
    GlobalAnchors::get_anchors()
);
```

### Get anchor title from saved key

[](#get-anchor-title-from-saved-key)

```
$key = $this->GlobalAnchorKey;
$anchorTitle = GlobalAnchors::get_anchor_title($key);
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance62

Regular maintenance activity

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~401 days

Recently: every ~467 days

Total

7

Last Release

236d ago

Major Versions

1.x-dev → 2.0.02023-05-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/40e135ad117686bee39707c1d9286cc5e915e219c26a10d13858ca44d14f1eb0?d=identicon)[dizzystuff](/maintainers/dizzystuff)

---

Top Contributors

[![dizzystuff](https://avatars.githubusercontent.com/u/576903?v=4)](https://github.com/dizzystuff "dizzystuff (11 commits)")[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (2 commits)")

---

Tags

silverstripecmsanchorlinks

### Embed Badge

![Health badge](/badges/fromholdio-silverstripe-globalanchors/health.svg)

```
[![Health](https://phpackages.com/badges/fromholdio-silverstripe-globalanchors/health.svg)](https://phpackages.com/packages/fromholdio-silverstripe-globalanchors)
```

PHPackages © 2026

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