PHPackages                             italofantone/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. italofantone/sluggable

ActiveLibrary[Database &amp; ORM](/categories/database)

italofantone/sluggable
======================

Is a PHP library designed to simplify and automate the creation of URL-friendly slugs based on Laravel.

v2.0.0(1y ago)6187↓50%11MITPHPPHP ^8.1

Since Aug 12Pushed 1y ago2 watchersCompare

[ Source](https://github.com/italofantone/sluggable)[ Packagist](https://packagist.org/packages/italofantone/sluggable)[ RSS](/packages/italofantone-sluggable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (1)

About Sluggable
===============

[](#about-sluggable)

Is a PHP library designed to simplify and automate the creation of URL-friendly slugs based on Laravel.

> ⚠️ This code was used for educational purposes \[...\]

### Installation

[](#installation)

You can install the sluggable package via composer. Run the following command:

```
composer require italofantone/sluggable

```

### Usage

[](#usage)

1. Add the trait to your model:

To use the Sluggable functionality, include the Sluggable trait in your Eloquent model. Here's an example:

```
