Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Slugify Laravel Package

oliwol/laravel-slugify

A Laravel package for generating URL-friendly slugs from strings. Provides a simple helper to turn titles and text into clean, readable slugs for routes, posts, and other model fields, with optional customization for separator and uniqueness.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • URL and content-lifecycle strategy: The new ID-anchored slugs (appendId) let route keys become {slug}-{id}, resolve by ID, and issue a 308 canonical redirect when a slug goes stale. This supports a product decision to allow content renaming without breaking inbound links, preserving SEO equity and customer bookmarks.
  • Build vs. buy: Slug generation, uniqueness handling, and stale-slug redirects are commodity infrastructure. Using this package avoids custom slug logic and edge-case maintenance, letting the team spend roadmap capacity on differentiated product work.
  • Configuration and segmentation: The SlugConfig fluent API supports closures and conditional configuration, useful for multi-tenant products, locale-specific slug rules, or content-type-specific behavior without one-off code paths.
  • Low-risk modernization: v2.0.0 is backward compatible with v1.x and all new features are opt-in. This supports scheduling an upgrade as routine maintenance rather than a dedicated migration project.
  • Developer productivity and onboarding: The bundled Laravel Boost skill and reworked documentation reduce ramp-up time for AI-assisted development and make the package easier to standardize across teams.
  • Vendor-switching flexibility: Updated Spatie v4 migration guidance lowers the cost of moving from a competing or custom solution, supporting a “buy, don’t build” decision with a credible exit path.

When to Consider This Package

Consider adoption when:

  • The product runs PHP 8.4+ and Laravel 11, 12, or 13.
  • Content URLs are product-facing and may change over time — for example CMS pages, marketplace listings, documentation, blogs, or ecommerce categories — making ID-anchored slugs and canonical redirects valuable.
  • The team needs conditional or multi-tenant slug rules that would otherwise be hand-coded.
  • The team is migrating from Spatie or maintaining custom slug logic and wants a lower-maintenance Laravel-native option.
  • The team uses Laravel Boost and wants package-specific AI development guidance.
  • The organization values a backward-compatible upgrade path and opt-in feature adoption.

Look elsewhere when:

  • The application is on older PHP or Laravel versions outside the supported matrix.
  • Slug behavior is trivial and content URLs never change — the ID-anchored and configuration features may be unnecessary.
  • The product requires highly bespoke routing, localization routing, or slug algorithms that go beyond the package’s scope.
  • The team is not on Laravel or needs a framework-agnostic solution.

How to Pitch It (Stakeholders)

For executives: v2.0.0 is a low-risk, backward-compatible upgrade that strengthens SEO and link permanence through ID-anchored slugs and canonical redirects. It supports a buy-over-build decision for commodity URL infrastructure, reducing maintenance cost and engineering distraction. The main planning constraint is the modern platform requirement: PHP 8.4+ and Laravel 11–13.

For engineering: The release is opt-in and upgrade-friendly — composer update for most apps, with an UPGRADE.md guide. It adds a fluent SlugConfig API, ID-anchored route resolution with 308 redirects for stale slugs, a Boost-discoverable skill, and improved Spatie v4 migration documentation. No breaking changes. The main adoption gate is the PHP/Laravel compatibility floor.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox