PHPackages                             stathisg/greek-slug-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. stathisg/greek-slug-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stathisg/greek-slug-generator
=============================

A slug (pretty URL) generator, which supports Greek UTF-8 encoded characters

2.0.2(9y ago)131.7k—6.3%3MITPHPPHP &gt;=5.4.0

Since Mar 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/stathisg/greek-slug-generator)[ Packagist](https://packagist.org/packages/stathisg/greek-slug-generator)[ Docs](https://github.com/stathisg/greek-slug-generator)[ RSS](/packages/stathisg-greek-slug-generator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

(Greek) Slug Generator
======================

[](#greek-slug-generator)

`GreekSlugGenerator` is a [slug](http://en.wikipedia.org/wiki/Slug_(web_publishing)#Slug) (pretty URL) generator, which supports Greek UTF-8 encoded characters, and generates a slug based on strings which are typically titles of pages or articles.

**The class can be used for English-only titles as well.**

If a Greek character is found, it is converted to its English equivalent.

Spaces as well as some punctuation marks are converted to dashes, but if at any point multiple sequential dashes are produced, only one appears in the final slug.

Installation
------------

[](#installation)

It can be installed either by requiring the `GreekSlugGenerator.php` file under `src`, or via Composer by using the [Packagist archive](https://packagist.org/packages/stathisg/greek-slug-generator).

Examples
--------

[](#examples)

```
use \StathisG\GreekSlugGenerator\GreekSlugGenerator;

// produces: the-class-can-be-used-for-english-only-titles-as-well
echo GreekSlugGenerator::getSlug('The class can be used for ENGLISH-ONLY titles as well');

// produces: it-ignores-multiple-spaces-between-the-words
echo GreekSlugGenerator::getSlug('It   ignores   multiple   spaces   between   the   words');

// produces: as-well-as-brackets-quotes-commas-and-full-stops
echo GreekSlugGenerator::getSlug('As well as brackets {[()]}, quotes `\'", commas, and full stops.');

//produces: some-others-are-converted-in-dashes-but-if-at-any-point-multiple-sequential-dashes-are-produced-only-one-appears-
echo GreekSlugGenerator::getSlug('Some others are converted in dashes, but if at any point multiple sequential dashes are produced, only one appears: \/_-');

// produces: greek-example-1-ekthesh-fwtografias-to-rethymno-kai-h-thalassa-hmeres-rethymnoy-2013
echo GreekSlugGenerator::getSlug('Greek example #1: Έκθεση Φωτογραφίας «Το Ρέθυμνο και η Θάλασσα» - "Ημέρες Ρεθύμνου" 2013');

// produces: greek-example-2-h-ekthesh-ksekinaei-thn-tetarth-08-05-2013-kai-wra-20-45-h-diarkeia-ths-ektheshs-tha-einai-apo-08-05-ews-07-06
echo GreekSlugGenerator::getSlug('Greek example #2: Η έκθεση ξεκινάει την Τετάρτη 08/05/2013 και ώρα 20:45. Η διάρκεια της έκθεσης θα είναι από 08/05 έως 07/06');
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~143 days

Total

4

Last Release

3322d ago

Major Versions

1.0.0 → 2.0.02016-03-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab7c1016bb41cf879d6909fe3d7505353be823ddaad80089d719e922a4ae3a94?d=identicon)[StathisG](/maintainers/StathisG)

---

Top Contributors

[![stathisg](https://avatars.githubusercontent.com/u/440021?v=4)](https://github.com/stathisg "stathisg (5 commits)")

---

Tags

sluggreekgreeklish

### Embed Badge

![Health badge](/badges/stathisg-greek-slug-generator/health.svg)

```
[![Health](https://phpackages.com/badges/stathisg-greek-slug-generator/health.svg)](https://phpackages.com/packages/stathisg-greek-slug-generator)
```

###  Alternatives

[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6758.1M80](/packages/jbroadway-urlify)[ausi/slug-generator

Slug Generator

8022.4M27](/packages/ausi-slug-generator)[voku/urlify

PHP port of URLify.js from the Django project. Transliterates non-ascii characters for use in URLs.

274.2M8](/packages/voku-urlify)[keyvanakbary/slugifier

A full-featured, simple, clean and pure functional implementation for creating slugs

69191.5k4](/packages/keyvanakbary-slugifier)[wazum/sluggi

TYPO3 extension for URL slug management with inline editing, auto-sync, locking, access control, and redirects

40529.5k](/packages/wazum-sluggi)[b13/masi

TYPO3 Extend URL generation to optionally include storage folders.

24321.8k3](/packages/b13-masi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
