PHP Package: cocur/slugify

A PHP library for creating SEO-friendly slugs from strings, useful for clean URLs and better search engine ranking.

Current Version: 4.6.0
Last Updated: 2024-09-10
PHP Requirement: ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
Dependencies: None

Package Description

Slugify is a powerful PHP library designed to simplify the process of transforming strings into SEO-optimized slugs. By converting strings into URL-friendly formats, Slugify enhances website searchability and user experience. It offers extensive customization options, including character replacements and transliteration features. With Slugify, developers can effortlessly generate consistent and user-friendly slugs for web content, such as blog posts, product pages, and category URLs.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.6.0

Download Download v4.6.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com

require_once 'libs/cocur/slugify/4.6.0/loader.php';
use Cocur\Slugify\Slugify;

$obj = new Slugify();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.