All Projects → keyvanakbary → Slugifier

keyvanakbary / Slugifier

Licence: mit
Just a simple, clean and pure functional implementation for creating slugs

Labels

Projects that are alternatives of or similar to Slugifier

Laravel Hashslug
Package providing a trait to use Hashids on a model
Stars: ✭ 136 (+97.1%)
Mutual labels:  slug
awesome
🎉 An Open Microservice for "awesome" slugs.
Stars: ✭ 25 (-63.77%)
Mutual labels:  slug
Friendly id
FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models.
Stars: ✭ 5,767 (+8257.97%)
Mutual labels:  slug
Slugger
A Slugger for elixir.
Stars: ✭ 149 (+115.94%)
Mutual labels:  slug
mongoose-slug-plugin
Slugs for Mongoose with history and i18n support (uses speakingurl by default, but you can use any slug library such as limax, slugify, mollusc, or slugme)
Stars: ✭ 21 (-69.57%)
Mutual labels:  slug
Eloquent Sluggable
Easy creation of slugs for your Eloquent models in Laravel
Stars: ✭ 3,321 (+4713.04%)
Mutual labels:  slug
Github Slug Action
GitHub Action to expose slug value of GitHub environment variables inside your GitHub workflow
Stars: ✭ 96 (+39.13%)
Mutual labels:  slug
Slugify Cli
Slugify a string
Stars: ✭ 49 (-28.99%)
Mutual labels:  slug
github-env-vars-action
🚀 GitHub Action for Environment Variables
Stars: ✭ 129 (+86.96%)
Mutual labels:  slug
Urlify
A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.
Stars: ✭ 633 (+817.39%)
Mutual labels:  slug
Slugify
Slugify a string
Stars: ✭ 2,110 (+2957.97%)
Mutual labels:  slug
mongoose-slug-updater
Schema-based slug plugin for Mongoose - single/compound - unique over collection/group - nested docs/arrays - relative/abs paths - sync on change: create/save/update/updateOne/updateMany/findOneAndUpdate tracked - $set operator - counter/shortId
Stars: ✭ 37 (-46.38%)
Mutual labels:  slug
Limax
Node.js module to generate URL slugs. Another one? This one cares about i18n and transliterates non-Latin scripts to conform to the RFC3986 standard. Mostly API-compatible with similar modules.
Stars: ✭ 423 (+513.04%)
Mutual labels:  slug
Translug
中文的 url slug 支持
Stars: ✭ 145 (+110.14%)
Mutual labels:  slug
Slug Generator
Slug Generator Library for PHP, based on Unicode’s CLDR data
Stars: ✭ 740 (+972.46%)
Mutual labels:  slug
Nova Slug Field
Slug field for Laravel Nova
Stars: ✭ 131 (+89.86%)
Mutual labels:  slug
slugify
A Go slugify application that handles string
Stars: ✭ 31 (-55.07%)
Mutual labels:  slug
Speakingurl
Generate a slug – transliteration with a lot of options
Stars: ✭ 1,056 (+1430.43%)
Mutual labels:  slug
Slug
Slugging for CakePHP
Stars: ✭ 32 (-53.62%)
Mutual labels:  slug
Slug
URL-friendly slugify with multiple languages support.
Stars: ✭ 632 (+815.94%)
Mutual labels:  slug

Slugifier

Build Status

A full-featured, simple, clean and pure functional implementation for creating slugs. No third party libraries or extensions needed.

Installation

composer require keyvanakbary/slugifier

Usage

use slugifier as s;

s\slugify('JúST å fëw wørds'); // just-a-few-words

s\slugify('Αυτή είναι μια δοκιμή'); // ayti-einai-mia-dokimi

s\slugify('Wikipedia style', '_'); // wikipedia_style

Modifiers

Sometimes the default character map is not accurate enough. Slugifier supports custom modifiers

s\slugify('Pingüino', '-', ['ü' => 'u']); // pinguino

Some language iso code modifiers are supported

s\slugify('Estaĵo', '-', s\MOD['eo']); // estajxo

s\slugify('Örnektir', '-', s\MOD['tr']); // ornektir
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].