PHP Package: cocur/slugify

A PHP library for creating SEO-friendly slugs from strings with support for multiple languages and custom transliterations.

Current Version: 4.6.0
Last Updated: 2024-09-10
PHP Requirement: >=7.1
Dependencies: symfony/polyfill-mbstring
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Slugify is a versatile PHP library that allows developers to easily generate URL-friendly slugs for their web applications. It provides support for various languages, custom transliterations, and seamless integration with existing PHP projects. With Slugify, you can ensure that your URLs are SEO-optimized and user-friendly, enhancing the overall user experience.

🔗 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/autoload.php';

use Cocur\Slugify\Slugify;
use Symfony\Polyfill\Mbstring\Mbstring;


$obj = new Cocur\Slugify\Slugify();
echo "✅ Example created successfully.";

?>

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