PHPackages                             mindtwo/slugify - 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. mindtwo/slugify

ActiveLibrary

mindtwo/slugify
===============

Create WordPress like slugs in laravel or any other php application.

1.1.1(7y ago)056MITPHPPHP &gt;=7.0

Since May 15Pushed 7y ago5 watchersCompare

[ Source](https://github.com/mindtwo/slugify)[ Packagist](https://packagist.org/packages/mindtwo/slugify)[ RSS](/packages/mindtwo-slugify/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Slugify – Generate URL Safe Slugs Like WordPress
================================================

[](#slugify--generate-url-safe-slugs-like-wordpress)

[![Total Downloads](https://camo.githubusercontent.com/03ca85f12d8437ff7637fb6a83f7431747c2b9a71243772d584a40ccbf84bb5d/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6474776f2f736c75676966792f646f776e6c6f6164732e737667)](https://packagist.org/packages/mindtwo/slugify)[![Latest Stable Version](https://camo.githubusercontent.com/3edf9f0b7ee7e8ab9ead4330ea93574611652a956780d7d72ad36f1d205f8c0c/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6474776f2f736c75676966792f762f737461626c652e737667)](https://packagist.org/packages/mindtwo/slugify)[![Latest Unstable Version](https://camo.githubusercontent.com/f5ea88976d942c03c00d3bd9fd937476ab9bf572925e9dec42e04cd888ecbe69/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6474776f2f736c75676966792f762f756e737461626c652e737667)](https://packagist.org/packages/mindtwo/slugify)[![License](https://camo.githubusercontent.com/949789566ec44b6208faab0f362a8288b24c973d052ddfe10c73fc5484765fc5/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6474776f2f736c75676966792f6c6963656e73652e737667)](https://packagist.org/packages/mindtwo/slugify)

Create WordPress like slugs in Laravel or any other php application without wordpress as a dependency.

The code to generate the slug is taken from WordPress 4.9.5 and battle tested on million websites.

Install
-------

[](#install)

- `composer require mindtwo/slugify`

How to use with Laravel:
------------------------

[](#how-to-use-with-laravel)

```
