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

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

fromholdio/silverstripe-urlsegmenter
====================================

Adds an extension to add a URLSegment to any SilverStripe DataObject and manages slug collisions

4.0.1(1mo ago)11.4k3BSD-3-ClausePHP

Since Apr 25Pushed 1mo ago1 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (13)Used By (0)

silverstripe-urlsegmenter
=========================

[](#silverstripe-urlsegmenter)

Adds an extension to add a URLSegment to any SilverStripe DataObject and manages slug collisions.

That is, it does the basic lifting of:

- Adding a `URLSegment` field of type `DBVarchar` to your object
- Provides an optional update to object's CMS Fields, inserting a URLSegment field (enable this via config yml)
- Auto-generates URLSegment based on object Title field

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

[](#requirements)

SilverStripe 6.x

(See branch 3.x for Silverstripe 4 &amp; 5 support.)

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

[](#installation)

`composer require fromholdio/silverstripe-urlsegmenter`

Upgrading from 1.x/2.x to 3.x/4.x
---------------------------------

[](#upgrading-from-1x2x-to-3x4x)

There are new config variables, which maintain the same default effect, however if you are overriding them in your projects you will need to update to the new variable names:

```
private static $urlsegmenter_force_title = true;
private static $urlsegmenter_enable_field = false;

```

Are now toggled via:

```
private static $urlsegmenter_forced = true;
private static $urlsegmenter_cmsfield_enabled = false;

```

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

[](#usage-example)

It's all plug-n-play once you apply the extension to your data object - with one exception.

To allow the extension to auto-generate a slug and manage collisions, you need to tell the extension what the scope of the collection you're setting the URLSegment within is.

```
class Widget extends DataObject
{
    // or apply via config.yml
    private static $extensions = [
        URLSegmenter::class
    ];

    private static $db = [
        'Title' => 'Varchar'
    ];

    private static $has_one = [
        'WidgetCategory' => WidgetCategory::class
    ];

    public function getURLSegmenterScope()
    {
        return self::get()
            ->filter('WidgetCategoryID' => $this->WidgetCategoryID)
            ->exclude('ID', $this->ID);
    }
}
```

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance92

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~258 days

Recently: every ~275 days

Total

11

Last Release

40d ago

Major Versions

1.0.0 → 2.0.02021-09-07

1.1.0 → 2.0.12021-10-13

2.x-dev → 3.0.02022-05-11

3.1.0 → 4.0.02025-09-20

3.x-dev → 4.0.12026-05-25

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

3.0.0PHP ^7.1 || ^8.0

### 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 (14 commits)")[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (1 commits)")

---

Tags

urlsilverstripeurlsegment

### Embed Badge

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

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

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[symbiote/silverstripe-gridfieldextensions

A collection of useful grid field components

951.9M272](/packages/symbiote-silverstripe-gridfieldextensions)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/tagfield

Tag field for SilverStripe

561.3M50](/packages/silverstripe-tagfield)[jonom/silverstripe-betternavigator

Front-end utility menu for Silverstripe websites featuring administration and development tools

60435.1k13](/packages/jonom-silverstripe-betternavigator)[lekoala/silverstripe-cms-actions

Add actions to your models in SilverStripe

39344.8k31](/packages/lekoala-silverstripe-cms-actions)

PHPackages © 2026

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