PHPackages                             zirak/sitetree-walk - 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. zirak/sitetree-walk

Abandoned → [g4b0/sitetree-walk](/?search=g4b0%2Fsitetree-walk)Silverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

zirak/sitetree-walk
===================

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

2.0.0(8y ago)2101[2 PRs](https://github.com/g4b0/silverstripe-sitetree-walk/pulls)GPL-2.0-onlyPHP

Since Nov 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/g4b0/silverstripe-sitetree-walk)[ Packagist](https://packagist.org/packages/zirak/sitetree-walk)[ RSS](/packages/zirak-sitetree-walk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (6)Used By (0)

SiteTree Walk
=============

[](#sitetree-walk)

Implementation of the annoying task to walk through the entire SiteTree in order to do things over the pages.

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

[](#introduction)

This module by itself does not do anything, it just iterate recursively through the SiteTree and hooks every implementor of SiteTreeWalkListener interface letting them doing things over each page.

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

[](#requirements)

- SilverStripe &gt;= 4.1 &lt; 5.0

For 3.x installations refer to the 1.x version

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

[](#installation)

Install the module through [composer](http://getcomposer.org):

```
composer require --no-update g4b0/sitetree-walk
composer update --no-dev g4b0/sitetree-walk

```

Running the task.
-----------------

[](#running-the-task)

Before running the task you need to implement your logic extending `SiteTreeWalkListener` interface. An example is provided with `SiteTreeWalkPrint`, that simply prints out the page title. To enable it set its member variable `SiteTreeWalkPrint::$enabled` to true. `SiteTreeWalkListener` implementor's run() method should return true for the processed pages, false for the excluded ones. Following the output of the sample:

```
#sake dev/tasks/SiteTreeWalk "flush=all"
Running Task SiteTreeWalk

Following SiteTreeWalkListener Implementors will be executed:
	* SiteTreeWalkPrint

Continue? [y|n]y

Home
Test
	Test 2
	Test 3
Chi siamo
Contattaci
Pagina non trovata  *** Excluded from processing
Errore server  *** Excluded from processing
My Page

################################################
Traversed Pages: 9

Processed Pages:
	SiteTreeWalkPrint: 9
################################################
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

2924d ago

Major Versions

1.0.3 → 2.0.02018-05-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/11ee3ded134711b9ff1d704b1d448a7d3fdfe1b5f5b2e2809cda7eeac8356de5?d=identicon)[g4b0](/maintainers/g4b0)

---

Top Contributors

[![g4b0](https://avatars.githubusercontent.com/u/2427390?v=4)](https://github.com/g4b0 "g4b0 (21 commits)")

---

Tags

silverstripetasksitetree

### Embed Badge

![Health badge](/badges/zirak-sitetree-walk/health.svg)

```
[![Health](https://phpackages.com/badges/zirak-sitetree-walk/health.svg)](https://phpackages.com/packages/zirak-sitetree-walk)
```

PHPackages © 2026

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