Weave Code
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

Slugify Laravel Package

cocur/slugify

cocur/slugify converts strings into URL-friendly slugs by stripping special characters and transliterating many languages (e.g., ä → ae). Lightweight with no external dependencies, PSR-4, PHP 8.0–8.5, and integrations for Laravel, Symfony, Twig, and more.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package is a pure PHP library with no framework dependencies, making it a natural fit for Laravel. It integrates seamlessly into models, services, or middleware without requiring architectural changes. Its lightweight nature (minimal dependencies) ensures no conflict with Laravel’s core components or common ecosystem packages like Eloquent or Symfony components.

Integration feasibility: High. Installation via Composer (composer require cocur/slugify) is trivial. The API is simple (e.g., Slugify::create()->slugify('text')), allowing quick adoption in existing codebases. Laravel-specific patterns (e.g., model mutators, service providers) can wrap the library for clean usage. However, if legacy slug logic exists (e.g., custom regex or other libraries), refactoring may be needed.

Technical risk: Moderate. The repository being listed as "unknown" raises concerns about long-term maintenance and security oversight. While the package has 2.9k stars and MIT licensing, verifying its actual GitHub repository (e.g., cocur/slugify is publicly hosted at github.com/cocur/slugify) is critical. PHP version compatibility (supports 7.4+), edge-case handling for rare UTF-8 characters, and potential conflicts with Laravel’s built-in string helpers (e.g., Str::slug()) must be validated.

Key questions:

  • Is the repository truly unknown, or is this a documentation error? (Verify `github.com/coc
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.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium