PHPackages                             milkyway-multimedia/ss-behaviours - 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. milkyway-multimedia/ss-behaviours

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

milkyway-multimedia/ss-behaviours
=================================

Add a hash or slug to any DataObject in Silverstripe

0.1.0(11y ago)41091[1 issues](https://github.com/milkyway-multimedia/ss-behaviours/issues)[1 PRs](https://github.com/milkyway-multimedia/ss-behaviours/pulls)PHP

Since Sep 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/milkyway-multimedia/ss-behaviours)[ Packagist](https://packagist.org/packages/milkyway-multimedia/ss-behaviours)[ RSS](/packages/milkyway-multimedia-ss-behaviours/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (1)Used By (0)

Behaviours
==========

[](#behaviours)

[![Build Status](https://camo.githubusercontent.com/3f7b4f26c8f5f39e013cace144902a5f3a0871e576374367cf9e9fc94e0e76a8/68747470733a2f2f7472617669732d63692e6f72672f6d696c6b797761792d6d756c74696d656469612f73732d6265686176696f7572732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/milkyway-multimedia/ss-behaviours)

**Behaviours** is a set of common DataExtensions and Traits to use with Silverstripe

- Hashable: This creates a unique hash for your DataObject. This cannot be decoded, but does not rely on any field on the original DataObject. This is used mainly as a replacement for ID if you want to hide the ID from the front-end, or in the case of not needing a unique value it can be a reference to differentiate records by certain attributes (such as product options - same size, colour, etc)
- Sluggable: This creates a slug for the DataObject. This can be decoded back to its original state. Usually used as a replacement for ID with URLs.

Install
-------

[](#install)

Add the following to your composer.json file

```

    "require"          : {
		"milkyway-multimedia/ss-behaviors": "dev-master"
	},

```

Add the following in your YAML config for objects you would like to hash/slug

```

YourDataObject:
  extensions:
    - Milkyway\SS\Behaviours\Extensions\Hashable

```

License
-------

[](#license)

- MIT

Version
-------

[](#version)

- 0.2 (Alpha)

Contact
-------

[](#contact)

#### Milkyway Multimedia

[](#milkyway-multimedia)

- Homepage:
- E-mail:
- Twitter: [@mwmdesign](https://twitter.com/mwmdesign "mwmdesign on twitter")

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

4309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/873db53f59bc2f8309c506d1b56313b0c7d8c7b3160eb1700ee0754d060f9767?d=identicon)[mi3ll](/maintainers/mi3ll)

---

Top Contributors

[![mellm0](https://avatars.githubusercontent.com/u/229937?v=4)](https://github.com/mellm0 "mellm0 (2 commits)")

### Embed Badge

![Health badge](/badges/milkyway-multimedia-ss-behaviours/health.svg)

```
[![Health](https://phpackages.com/badges/milkyway-multimedia-ss-behaviours/health.svg)](https://phpackages.com/packages/milkyway-multimedia-ss-behaviours)
```

###  Alternatives

[vinkla/hashids

A Hashids bridge for Laravel

2.1k13.9M78](/packages/vinkla-hashids)[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k2.2M5](/packages/ashallendesign-short-url)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

53675.5k17](/packages/solspace-craft-freeform)[deligoez/laravel-model-hashid

Generate, Save, and Route Stripe/Youtube-like Hash IDs for Laravel Eloquent Models

166109.2k](/packages/deligoez-laravel-model-hashid)[torann/hashids

Laravel package for Hashids

54341.1k](/packages/torann-hashids)[balping/laravel-hashslug

Package providing a trait to use Hashids on a model

25189.6k2](/packages/balping-laravel-hashslug)

PHPackages © 2026

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