PHPackages                             weboftalent/prevnextsibling - 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. [Templating &amp; Views](/categories/templating)
4. /
5. weboftalent/prevnextsibling

ActiveSilverstripe-vendormodule[Templating &amp; Views](/categories/templating)

weboftalent/prevnextsibling
===========================

Helper method and template to allow previous and next sibling integration easily

3.0.1(4y ago)1193[1 issues](https://github.com/gordonbanderson/prev-next-sibling/issues)[1 PRs](https://github.com/gordonbanderson/prev-next-sibling/pulls)BSD-3-ClausePHPPHP ~7.1

Since Jan 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/gordonbanderson/prev-next-sibling)[ Packagist](https://packagist.org/packages/weboftalent/prevnextsibling)[ RSS](/packages/weboftalent-prevnextsibling/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (7)Versions (11)Used By (0)

Previous and Next Sibling
=========================

[](#previous-and-next-sibling)

[![Module CI](https://github.com/gordonbanderson/prev-next-sibling/actions/workflows/ci.yml/badge.svg)](https://github.com/gordonbanderson/prev-next-sibling/actions/workflows/ci.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/219dd6bf946e8e1ab5d70add276db58477fa9d7227e610b6c1fb4f326870966d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f72646f6e62616e646572736f6e2f707265762d6e6578742d7369626c696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/gordonbanderson/prev-next-sibling/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/7285457d1d6f2494594e7596bb8637d5a6e15ba90c0acd0f8203ff230b6ac856/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f72646f6e62616e646572736f6e2f707265762d6e6578742d7369626c696e672f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/gordonbanderson/prev-next-sibling/?branch=main)[![Build Status](https://camo.githubusercontent.com/ffb6a07774c9b9f677e2aa3b67044791111523f65efb46382681c6fb43b726cc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f72646f6e62616e646572736f6e2f707265762d6e6578742d7369626c696e672f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/gordonbanderson/prev-next-sibling/build-status/main)[![codecov.io](https://camo.githubusercontent.com/44eee8bc419bf92155b2a88596a93a47502cfa7d1b1020c393b42ef0a72d9a53/68747470733a2f2f636f6465636f762e696f2f6769746875622f676f72646f6e62616e646572736f6e2f707265762d6e6578742d7369626c696e672f636f7665726167652e7376673f6272616e63683d6d61696e)](https://codecov.io/github/gordonbanderson/prev-next-sibling?branch=main)

[![Latest Stable Version](https://camo.githubusercontent.com/0c87dce52d3b01e58a182c2562a8d29f69c4c9e30662ba77d7c9eaba18bcd25c/68747470733a2f2f706f7365722e707567782e6f72672f7765626f6674616c656e742f707265766e6578747369626c696e672f76657273696f6e)](https://packagist.org/packages/weboftalent/prevnextsibling)[![Latest Unstable Version](https://camo.githubusercontent.com/8b0aa1ba828bbfde123595df61acaa8b4af64ccde775df0092f3fd85eb090e9f/68747470733a2f2f706f7365722e707567782e6f72672f7765626f6674616c656e742f707265766e6578747369626c696e672f762f756e737461626c65)](//packagist.org/packages/weboftalent/prevnextsibling)[![Total Downloads](https://camo.githubusercontent.com/ecfef911bac9dbfa40e270d8e6f34d85374164a896fbc6ba75c4837aeb57458c/68747470733a2f2f706f7365722e707567782e6f72672f7765626f6674616c656e742f707265766e6578747369626c696e672f646f776e6c6f616473)](https://packagist.org/packages/weboftalent/prevnextsibling)[![License](https://camo.githubusercontent.com/0e03828eca5c02334b6b0deba83ccdb1b0aec6494dc24054d29b6d1a90e076fc/68747470733a2f2f706f7365722e707567782e6f72672f7765626f6674616c656e742f707265766e6578747369626c696e672f6c6963656e7365)](https://packagist.org/packages/weboftalent/prevnextsibling)[![Monthly Downloads](https://camo.githubusercontent.com/926460c50afd3d7e505e6fa6675cd3d425a30fda8b757d0814bd6d7678281a30/68747470733a2f2f706f7365722e707567782e6f72672f7765626f6674616c656e742f707265766e6578747369626c696e672f642f6d6f6e74686c79)](https://packagist.org/packages/weboftalent/prevnextsibling)[![Daily Downloads](https://camo.githubusercontent.com/e09400e3d7a7a2f2755ecc1106beed251bf76bfb0987b2bd47bd6bb1dba4a493/68747470733a2f2f706f7365722e707567782e6f72672f7765626f6674616c656e742f707265766e6578747369626c696e672f642f6461696c79)](https://packagist.org/packages/weboftalent/prevnextsibling)

[![codecov.io](https://camo.githubusercontent.com/835b9512673baf816dc3a4d597609a1fd673e746e2ca8815d20e37c66110eb52/68747470733a2f2f636f6465636f762e696f2f6769746875622f676f72646f6e62616e646572736f6e2f707265762d6e6578742d7369626c696e672f6272616e63682e7376673f6272616e63683d6d61696e)](https://camo.githubusercontent.com/835b9512673baf816dc3a4d597609a1fd673e746e2ca8815d20e37c66110eb52/68747470733a2f2f636f6465636f762e696f2f6769746875622f676f72646f6e62616e646572736f6e2f707265762d6e6578742d7369626c696e672f6272616e63682e7376673f6272616e63683d6d61696e)

Maintainers
-----------

[](#maintainers)

- Gordon Anderson (Nickname: nontgor)

Introduction
------------

[](#introduction)

This module provides convenience methods for previous and next siblings of a common parent. It is used for paging through a list of children items.

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

[](#installation)

```
composer require "weboftalent/prev-next-sibling"
```

Usage
-----

[](#usage)

### Previous Sibling

[](#previous-sibling)

In a template call `$PreviousSibling`

```
$Title

```

If there is no previous sibling the result will be blank and nothing will render.

### NextSibling

[](#nextsibling)

In a template call `$NextSibling`

```
$Title

```

If there is no next sibling the result will be blank and nothing will render.

\##Requirements

- SilverStripe 4

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~709 days

Total

4

Last Release

1685d ago

Major Versions

1.0.0 → 2.0.02020-02-07

2.0.0 → 3.0.02021-11-18

PHP version history (2 changes)2.0.0PHP ~7

3.0.0PHP ~7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/9af58f7ff675f65dbd2f20d39d8b80ed671eb0fe376eb978e497934c175196fe?d=identicon)[weboftalent](/maintainers/weboftalent)

---

Top Contributors

[![gordonbanderson](https://avatars.githubusercontent.com/u/7060?v=4)](https://github.com/gordonbanderson "gordonbanderson (42 commits)")

---

Tags

helpersilverstripetemplatesiblings

###  Code Quality

TestsPHPUnit

Type Coverage Yes

### Embed Badge

![Health badge](/badges/weboftalent-prevnextsibling/health.svg)

```
[![Health](https://phpackages.com/badges/weboftalent-prevnextsibling/health.svg)](https://phpackages.com/packages/weboftalent-prevnextsibling)
```

###  Alternatives

[stevie-mayhew/silverstripe-svg

Basic SVG support for SilverStripe

22355.3k4](/packages/stevie-mayhew-silverstripe-svg)[symbiote/silverstripe-listingpage

A module that allows CMS users to create templated listing pages.

1012.9k3](/packages/symbiote-silverstripe-listingpage)

PHPackages © 2026

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