2017 © Pedro Peláez
 

cakephp-plugin slug

Slug plugin for CakePHP

image

kicaj/slug

Slug plugin for CakePHP

  • Sunday, May 20, 2018
  • by kicaj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

CakePHP plugin for slugs

Build Status Scrutinizer Code Quality LICENSE Releases, (*1)

Automatic creation of friendly links based on indicated field., (*2)

Requirements

It's developed for CakePHP 4.x., (*3)

Installation

You can install plugin into your CakePHP application using composer., (*4)

The recommended way to install composer packages is:, (*5)

composer require slicesofcake/slug

Load the Behavior

Load the behavior in /src/Model/Table/YourTable.php., (*6)

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

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

You can configuration to customize the Slug plugin:, (*7)

$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
    ],
]);

The Versions

20/05 2018

dev-master

9999999-dev

Slug plugin for CakePHP

  Sources   Download

MIT

The Requires

 

by Avatar kicaj

20/05 2018

1.2.0

1.2.0.0

Slug plugin for CakePHP

  Sources   Download

MIT

The Requires

 

by Avatar kicaj

19/05 2018

1.1.0

1.1.0.0

Slug plugin for CakePHP

  Sources   Download

MIT

The Requires

 

by Avatar kicaj

19/05 2018

1.0.0

1.0.0.0

Slug plugin for CakePHP

  Sources   Download

MIT

The Requires

 

by Avatar kicaj