All Projects → polischuk → SlugGenerator

polischuk / SlugGenerator

Licence: MIT license
Slug generator for .net

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to SlugGenerator

slugify
A Go slugify application that handles string
Stars: ✭ 31 (+19.23%)
Mutual labels:  slug
Slugify Cli
Slugify a string
Stars: ✭ 49 (+88.46%)
Mutual labels:  slug
Nova Slug Field
Slug field for Laravel Nova
Stars: ✭ 131 (+403.85%)
Mutual labels:  slug
Eloquent Sluggable
Easy creation of slugs for your Eloquent models in Laravel
Stars: ✭ 3,321 (+12673.08%)
Mutual labels:  slug
Slug Generator
Slug Generator Library for PHP, based on Unicode’s CLDR data
Stars: ✭ 740 (+2746.15%)
Mutual labels:  slug
Slugifier
Just a simple, clean and pure functional implementation for creating slugs
Stars: ✭ 69 (+165.38%)
Mutual labels:  slug
github-env-vars-action
🚀 GitHub Action for Environment Variables
Stars: ✭ 129 (+396.15%)
Mutual labels:  slug
Slugger
A Slugger for elixir.
Stars: ✭ 149 (+473.08%)
Mutual labels:  slug
Slug
Slugging for CakePHP
Stars: ✭ 32 (+23.08%)
Mutual labels:  slug
Github Slug Action
GitHub Action to expose slug value of GitHub environment variables inside your GitHub workflow
Stars: ✭ 96 (+269.23%)
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 (+1526.92%)
Mutual labels:  slug
Urlify
A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.
Stars: ✭ 633 (+2334.62%)
Mutual labels:  slug
Sluggish
Toy CPU and GPU implementations of the Slug rendering algorithm
Stars: ✭ 70 (+169.23%)
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 (+22080.77%)
Mutual labels:  slug
Laravel Hashslug
Package providing a trait to use Hashids on a model
Stars: ✭ 136 (+423.08%)
Mutual labels:  slug
awesome
🎉 An Open Microservice for "awesome" slugs.
Stars: ✭ 25 (-3.85%)
Mutual labels:  slug
Speakingurl
Generate a slug – transliteration with a lot of options
Stars: ✭ 1,056 (+3961.54%)
Mutual labels:  slug
Slugify
Slugify a string
Stars: ✭ 2,110 (+8015.38%)
Mutual labels:  slug
Translug
中文的 url slug 支持
Stars: ✭ 145 (+457.69%)
Mutual labels:  slug
Dashify
Convert a camelcase or space-separated string to a dash-separated string.
Stars: ✭ 71 (+173.08%)
Mutual labels:  slug

What is SlugGenerator?

SlugGenerator it's simple Slug and clean URL generator. Supports multiple languages such as: Cyrillic, Latin, Chinese and other languages encodings

Where can I get it?

Install from the package manager console:

PM> Install-Package SlugGenerator

Slug generation

Simple usage

  using SlugGenerator;
  
  "my test text".GenerateSlug(); // return my-test-text

Using Custom space separator

  using SlugGenerator;
  
  "my test text".GenerateSlug("_"); // set "_" as separator and return "my_test_text" string

Multilanguage feature

Slug generator transliteration all basic languages to english charters

  using SlugGenerator;
  
  // Russian language
  "привет как дела".GenerateSlug(); // return privet-kak-dela
  "你好你怎麼樣".GenerateSlug(); // return ni-hao-ni-zen-mo-yang-

Generate Unique slug

This method help u Generate unique slug, if slug already exist on list, method generate slug with additional numbers or guid.

  using SlugGenerator;
    public class ConcreteSlug : ISlug
    {
        public string Slug { get; set; }
    }
  
  
    var slug = item.Text.GenerateUniqueSlug(items);
    var itemsList = new List<ConcreteSlug>
            {
                new ConcreteSlug
                {
                    Slug = "test"
                },
                new ConcreteSlug
                {
                    Slug = "test2"
                }
            };
    var slug = "test".GenerateUniqueSlug(itemsList); // return slug which is not in an itemsList
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].