keyvanakbary/slugifier
keyvanakbary/slugifier is a lightweight PHP library for turning text into clean, URL-friendly slugs. It supports UTF-8 transliteration, customizable separators and transformations, and works standalone or in Laravel via Composer.
Str::slug? What is the backfill and rollback plan?SlugGenerator contract, add contract tests, pin the version or vendor a fork, and maintain an exit path to Laravel’s native helper or an internal implementation.Str::slug or existing slug generation before changing anything. For existing records, avoid mass rewrites unless required; for new writes, run the package in shadow mode and compare outputs. If replacing an existing generator, use an adapter and idempotent backfill jobs with rollback checkpoints.composer.json, autoloading, PHP constraints, and required extensions before adoption. Run the package’s tests, then add application-level contract tests covering accents, CJK, emoji, punctuation, whitespace, casing, length limits, duplicate inputs, and empty output. Verify behavior under the exact PHP and Laravel versions used in production.How can I help you explore Laravel packages today?