PHPackages                             ammont/fa-slugify - 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. ammont/fa-slugify

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

ammont/fa-slugify
=================

Slug generator for persian/farsi.

10170[1 issues](https://github.com/ammont/FaSlugify/issues)PHP

Since Jul 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ammont/FaSlugify)[ Packagist](https://packagist.org/packages/ammont/fa-slugify)[ RSS](/packages/ammont-fa-slugify/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ammont/fa-slugify
=================

[](#ammontfa-slugify)

> Converts a string into a slug with persian/farsi support.

Features
--------

[](#features)

- Removes all special characters from a string.
- Provides custom replacements for Persian/Farsi.
- PSR-4 compatible.
- Compatible with PHP &gt;= 5.3.

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

[](#installation)

You can install ammont/fa-slugify through [Composer](https://getcomposer.org):

```
$ composer require ammont/fa-slugify:dev-master
```

Usage
-----

[](#usage)

Generate a slug:

```
use Ammont\FaSlugify\FaSlugify;

$slugify = new FaSlugify();
echo $slugify->slugify('سلام دنیا');

// سلام-دنیا
```

You can also change the seperator used by `FaSlugify`:

```
echo $slugify->slugify('سلام دنیا', '_');

// سلام_دنیا
```

You can enable translation to generate standard latin (pinglish) slugs. (it's in developement)

```
$slugify = new FaSlugify(true);// pass true to enable translation

echo $slugify->slugify('سلام دنیا');

// salam-donya
```

Changelog
---------

[](#changelog)

### Version 0.1 (27 July 2014)

[](#version-01-27-july-2014)

Authors
-------

[](#authors)

- [Amir Montazer](https://github.com/ammont)

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2012-2014 Amir Montazer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/380f663ea41e6244fb6ab517b705ed0807d6e0660b5efd89693d3b65b91629dc?d=identicon)[ammont](/maintainers/ammont)

---

Top Contributors

[![ammont](https://avatars.githubusercontent.com/u/2066482?v=4)](https://github.com/ammont "ammont (8 commits)")

### Embed Badge

![Health badge](/badges/ammont-fa-slugify/health.svg)

```
[![Health](https://phpackages.com/badges/ammont-fa-slugify/health.svg)](https://phpackages.com/packages/ammont-fa-slugify)
```

###  Alternatives

[franzl/studio

Develop your Composer libraries with style

1.1k634.5k15](/packages/franzl-studio)[ezsystems/ez-support-tools

Providing information about the system eZ Platform/Enterprise/Commerce is running on, and eZ install itself

44979.6k18](/packages/ezsystems-ez-support-tools)[sidroberts/phalcon-cron

Cron component for Phalcon.

79149.1k](/packages/sidroberts-phalcon-cron)[data-values/number

Numerical value objects, parsers and formatters

18303.0k14](/packages/data-values-number)[attestto/solana-php-sdk

Solana PHP SDK for interacting with the Solana blockchain

5528.1k](/packages/attestto-solana-php-sdk)[sitegeist/taxonomy

Manage vocabularies and taxonomies as separate node-hierarchy.

1589.7k1](/packages/sitegeist-taxonomy)

PHPackages © 2026

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