PHP Package: cviebrock/eloquent-sluggable

A PHP library for creating SEO-friendly slugs for Eloquent models with Laravel.

Current Version: 12.0.0
Last Updated: Date not available
PHP Requirement: ^8.2
Dependencies:
illuminate/database
illuminate/support
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Eloquent-Sluggable is a powerful library that enables the creation of search engine optimized slugs for your Eloquent models in Laravel applications. It provides an easy way to generate unique and readable URLs based on specific attributes of your models. This package offers flexibility and customization for defining slug generation rules, handling duplicate slugs, and ensuring URL uniqueness.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 12.0.0

Download Download v12.0.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/cviebrock/eloquent-sluggable/12.0.0/loader.php';
require_once 'libs/illuminate/database/12.18.0/loader.php';
require_once 'libs/illuminate/support/12.18.0/loader.php';

use Cviebrock\EloquentSluggable\SluggableScopeHelpers;
use Cviebrock\EloquentSluggable\SluggableServiceProvider;

$obj = new SluggableScopeHelpers();
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.