Registry / utility / cocur-slugify

cocur-slugify

JSON →
library4.7.1phppackagistunverified

Converts a string into a slug.

composer require cocur/slugify
INSTALL
IMPORT
SIG · COCUR-SLUGIFY
C
cocur-slugify
utilityphpv4.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Slugify
✓ use Cocur\Slugify\Slugify;

Convert a string to a URL-friendly slug

use Cocur\Slugify\Slugify; $slugify = new Slugify(); echo $slugify->slugify('Hello World'); // hello-world
Debug
Known issues
gotchaDefault rules may not handle all Unicode characters
fix
Use custom ruleset or transliterator for full Unicode support
affects: >=4.0.0
Upgrade
Version history
4.7.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
cocur-slugify — pip install cocur-slugify · libregistry