PHPackages                             slicesofcake/slug - 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. slicesofcake/slug

AbandonedArchivedCakephp-plugin

slicesofcake/slug
=================

CakePHP plugin for slugs

2.2(6y ago)0129[1 issues](https://github.com/slicesofcake/slug/issues)[1 PRs](https://github.com/slicesofcake/slug/pulls)MITPHP

Since May 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/slicesofcake/slug)[ Packagist](https://packagist.org/packages/slicesofcake/slug)[ Docs](https://github.com/kicaj/slug)[ RSS](/packages/slicesofcake-slug/feed)WikiDiscussions master Synced 1mo ago

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

CakePHP plugin for slugs
========================

[](#cakephp-plugin-for-slugs)

[![Build Status](https://camo.githubusercontent.com/b65d28cd34ce31fd6fac8a3355d4303cbf51fd9100fa83992ddebc8ba29ebd1e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736c696365736f6663616b652f736c75672f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/slicesofcake/slug/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8f467b38f35064d9622db8fdf9e9f679f7de84ffef8a3ed74becbfc983f7cb8a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736c696365736f6663616b652f736c75672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/slicesofcake/slug/?branch=master)[![LICENSE](https://camo.githubusercontent.com/4a3d810d825126455b3c2d590617ae21833614378514cbeff201d174cd5a9ca7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736c696365736f6663616b652f736c75672e737667)](https://github.com/slicesofcake/slug/blob/master/LICENSE)[![Releases](https://camo.githubusercontent.com/b5b258e829255d98114ffc6d5b028b5f152a943f7072c80b27b7834fd15d85ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736c696365736f6663616b652f736c75672e737667)](https://github.com/slicesofcake/slug/releases)

Automatic creation of friendly links based on indicated field.

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

[](#requirements)

It's developed for CakePHP 4.x.

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

[](#installation)

You can install plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require slicesofcake/slug
```

### Load the Behavior

[](#load-the-behavior)

Load the behavior in `/src/Model/Table/YourTable.php`.

```
public function initialize(array $config): void
{
    // ...

    $this->addBehavior('SlicesCake/Slug.Slug');
}
```

You can configuration to customize the Slug plugin:

```
$this->addBehavior('SlicesCake/Slug.Slug', [
    'slug' => [ // Target field name of column to store slugs, default is slug
        'source' => 'name', // Source field name to create slug, default is title
        'replacement' => '_', // Default is -
        'finder' => 'some', // You can build own custom finder method, like findSome, default is built-in list
        'present' => true, // Rewrite slug, default is false, was added in 1.1.0
        'method' => 'someOther', // You can build own method for create string slug, now default is built-in Text::slug, was added in 1.2.0
    ],
]);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 98.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 ~138 days

Recently: every ~173 days

Total

6

Last Release

2224d ago

Major Versions

1.2.0 → 2.02020-02-13

### Community

Maintainers

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

---

Top Contributors

[![kicaj](https://avatars.githubusercontent.com/u/3750725?v=4)](https://github.com/kicaj "kicaj (57 commits)")[![stickler-ci](https://avatars.githubusercontent.com/u/16011037?v=4)](https://github.com/stickler-ci "stickler-ci (1 commits)")

---

Tags

cakephpcakephp-pluginfriendly-urlroutingseoslug

### Embed Badge

![Health badge](/badges/slicesofcake-slug/health.svg)

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

###  Alternatives

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/bake

Bake plugin for CakePHP

11211.2M158](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M27](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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