PHP Package: spatie/laravel-sluggable
A Laravel package that automatically adds slugs to your Eloquent models for SEO optimization and better URL readability.
Package Description
Laravel Sluggable is a package that simplifies the process of creating and managing slugs for your Eloquent models in Laravel applications. It allows you to easily generate and update slugs to improve your website's search engine optimization (SEO) and enhance the readability of your URLs. By integrating this package, you can streamline the handling of slugs, making your application more user-friendly and SEO-friendly at the same time.
Download Latest Version: 3.7.5

Previous Versions
Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/laravel-sluggable/3.7.5/loader.php';
require_once 'libs/illuminate/database/12.33.0/loader.php';
require_once 'libs/illuminate/support/12.33.0/loader.php';
use Spatie\Sluggable\HasSlug;
use Illuminate\Database\Eloquent\Model;
$obj = new HasSlug();
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.