PHPackages                             xety/cake3-sluggable - 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. [Database &amp; ORM](/categories/database)
4. /
5. xety/cake3-sluggable

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

xety/cake3-sluggable
====================

A simple Cake3 plugin to slug fields and find records by slug.

v1.2(10y ago)610.2k3[2 issues](https://github.com/Xety/Cake3-Sluggable/issues)MITPHPPHP &gt;=5.4.16

Since Nov 4Pushed 10y ago2 watchersCompare

[ Source](https://github.com/Xety/Cake3-Sluggable)[ Packagist](https://packagist.org/packages/xety/cake3-sluggable)[ Docs](https://github.com/Xety/Cake3-Sluggable)[ RSS](/packages/xety-cake3-sluggable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Cake3 Sluggable
===============

[](#cake3-sluggable)

A simple Cake3 plugin to slug fields and find records by slug.

[![Build Status](https://camo.githubusercontent.com/85eeb4b1397789576bd31ee93faa7ebe780339ed79f342d015824c3a414f4067/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f586574792f43616b65332d536c75676761626c652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Xety/Cake3-Sluggable)[![Coverage Status](https://camo.githubusercontent.com/e92bf28142664881710189baa0ff98e8748abce2e13887cf500c00a7240dd7cf/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f586574792f43616b65332d536c75676761626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/xety/Cake3-Sluggable)[![Scrutinizer](https://camo.githubusercontent.com/72d0ea95a813fb8fffd29155e2aa08bd785934b5f5b1b922b383ae343125712b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f586574792f43616b65332d536c75676761626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Xety/Cake3-Sluggable)[![Latest Stable Version](https://camo.githubusercontent.com/dc8f61770ed3dd2ce811a7db4b53c46361389592c47b630a229386343a38d842/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f586574792f43616b65332d536c75676761626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xety/cake3-sluggable)[![Total Downloads](https://camo.githubusercontent.com/3abada418a64aa851d487d7867aff7dc579a1b5274b5577d1a1169f53299a698/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f786574792f63616b65332d736c75676761626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xety/cake3-sluggable)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xety/cake3-sluggable)

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

[](#requirements)

- CakePHP 3.X

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

[](#installation)

Run : `composer require xety/cake3-sluggable:1.*`Or add it in your `composer.json`:

```
"require": {
	"xety/cake3-sluggable": "1.*"
},
```

Usage
-----

[](#usage)

In your `config/bootstrap.php` add :

```
Plugin::load('Xety/Cake3Sluggable');
```

In your model `initialize()`:

```
$this->addBehavior('Xety/Cake3Sluggable.Sluggable');
```

To use the custom finder :

```
$this->Users
	->find('slug', [
		'slug' => 'your-slug-here',
		'slugField' => 'Users.slug'
	]);
```

Configuration
-------------

[](#configuration)

- ### field

    [](#field)

    Default : `title`

    The field to slug :

    ```
     $this->addBehavior('Xety/Cake3Sluggable.Sluggable', [
     		'field' => 'username'
     	]
     );
    ```
- ### slug

    [](#slug)

    Default : `slug`

    The slug field name in your database :

    ```
     $this->addBehavior('Xety/Cake3Sluggable.Sluggable', [
     		'field' => 'username',
     		'slug' => 'slug_username'
     	]
     );
    ```
- ### replacement

    [](#replacement)

    Default : `-`

    The replacement characters used to replace space etc :

    ```
     $this->addBehavior('Xety/Cake3Sluggable.Sluggable', [
     		'replacement' => '_'
     	]
     );
    ```

Contribute
----------

[](#contribute)

[Follow this guide to contribute](https://github.com/Xety/Cake3-Sluggable/blob/master/CONTRIBUTING.md)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~221 days

Total

3

Last Release

3762d ago

PHP version history (2 changes)v1.0PHP &gt;=5.4.0

v1.1PHP &gt;=5.4.16

### Community

Maintainers

![](https://www.gravatar.com/avatar/b411de63e10c9029d2d06da585856f15db12c23395bc908f085fad15638a8098?d=identicon)[Xety](/maintainers/Xety)

---

Top Contributors

[![Xety](https://avatars.githubusercontent.com/u/8210023?v=4)](https://github.com/Xety "Xety (4 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (2 commits)")[![antograssiot](https://avatars.githubusercontent.com/u/4977112?v=4)](https://github.com/antograssiot "antograssiot (1 commits)")

---

Tags

pluginslugormcakephpsluggablefieldsrecordscake3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xety-cake3-sluggable/health.svg)

```
[![Health](https://phpackages.com/badges/xety-cake3-sluggable/health.svg)](https://phpackages.com/packages/xety-cake3-sluggable)
```

###  Alternatives

[josegonzalez/cakephp-upload

CakePHP plugin to handle file uploading sans ridiculous automagic

5451.3M9](/packages/josegonzalez-cakephp-upload)[muffin/trash

Adds soft delete support to CakePHP ORM tables.

851.3M11](/packages/muffin-trash)[xety/cake3-upload

Cake3 plugin to upload files.

2825.6k1](/packages/xety-cake3-upload)[muffin/slug

Slugging support for CakePHP ORM

38264.8k5](/packages/muffin-slug)[muffin/webservice

Simplistic webservices for CakePHP

88191.0k13](/packages/muffin-webservice)[admad/cakephp-sequence

Sequence plugin for CakePHP to maintain ordered list of records

46489.9k6](/packages/admad-cakephp-sequence)

PHPackages © 2026

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