PHPackages                             yasinkuyu/turkish - 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. yasinkuyu/turkish

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

yasinkuyu/turkish
=================

Turkish Suffix Library for PHP - Türkçe Çekim ve Yapım Ekleri

62276PHP

Since Jun 14Pushed 1y ago4 watchersCompare

[ Source](https://github.com/yasinkuyu/Turkish.php)[ Packagist](https://packagist.org/packages/yasinkuyu/turkish)[ RSS](/packages/yasinkuyu-turkish/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Turkish.php
===========

[](#turkishphp)

### Turkish Suffix Library for PHP

[](#turkish-suffix-library-for-php)

[@yasinkuyu](https://twitter.com/yasinkuyu)

Composer Install
----------------

[](#composer-install)

```
composer require yasinkuyu/turkish

require_once __DIR__ . '/vendor/autoload.php';

```

Manual installation
-------------------

[](#manual-installation)

```
require 'Turkish.php';

```

Using
-----

[](#using)

```
	$tr = new Turkish;

	echo $tr->makeGenitive("Öykü", array ( "proper_noun" => true ) ), PHP_EOL;
	echo $tr->makeDative("Fatma", array ( "proper_noun" => true ) ), PHP_EOL;

	echo $tr->makeDative("Yasin", array ( "proper_noun" => true ) ), PHP_EOL;
	echo $tr->makeDative("ALİ", array ( "proper_noun" => true ) ), PHP_EOL;
	echo $tr->makeAblative("Ali", array ( "proper_noun" => true ) ), PHP_EOL;
	echo $tr->makeAccusative("Kaliningrad", array ( "proper_noun" => true ) ), PHP_EOL;

	echo $tr->makeDerivative("güneş", array ( "proper_noun" => false ) ), PHP_EOL;

	echo $tr->makeGenitive("ağaç", array ( "proper_noun" => false ) ), PHP_EOL;
	echo $tr->makeAccusative("erik", array ( "proper_noun" => false ) ), PHP_EOL;
	echo $tr->makeAccusative("Erik", array ( "proper_noun" => true ) ), PHP_EOL;

	echo $tr->possessiveAffix("kavanoz", array ( "person" => "1", "quantity" => "singular" ) ), PHP_EOL;
	echo $tr->possessiveAffix("kavanoz", array (  "person" => "2", "quantity" => "singular") ), PHP_EOL;
	echo $tr->possessiveAffix("kavanoz", array (  "person" => "3", "quantity" => "singular") ), PHP_EOL;

	echo $tr->possessiveAffix("halter", array (  "person" => "1", "quantity" => "plural") ), PHP_EOL;
	echo $tr->possessiveAffix("halter", array (  "person" => "2", "quantity" => "plural") ), PHP_EOL;
	echo $tr->possessiveAffix("halter", array (  "person" => "3", "quantity" => "plural") ), PHP_EOL;

	echo $tr->possessiveAffix("Kenya", array (  "person" => "3", "quantity" => "plural") ), PHP_EOL;

```

Output
======

[](#output)

```
Öykü'nün
Fatma'ya
Yasin'e
ALİ'YE
Ali'den
Kaliningrad'ı
güneşli
ağacın
eriği
Erik'i
kavanozum
kavanozun
kavanozu
halterimiz
halteriniz
halterleri
Kenyaları

```

Turkish Grammar
---------------

[](#turkish-grammar)

- Turkish is a highly agglutinative language, i.e., Turkish words have many grammatical suffixes or endings that determine meaning. Turkish vowels undergo vowel harmony. When a suffix is attached to a stem, the vowel in the suffix agrees in frontness or backness and in roundedness with the last vowel in the stem. Turkish has no gender.
- [More Info](http://en.wikipedia.org/wiki/Turkish_grammar)

Author
------

[](#author)

- Yasin Kuyu
- [Follow me at Twitter](http://twitter.com/yasinkuyu)

    C# Version

    JavaScript Version

    Python Version

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92.3% 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://avatars.githubusercontent.com/u/204635?v=4)[Yasin](/maintainers/yasinkuyu)[@yasinkuyu](https://github.com/yasinkuyu)

---

Top Contributors

[![yasinkuyu](https://avatars.githubusercontent.com/u/204635?v=4)](https://github.com/yasinkuyu "yasinkuyu (12 commits)")[![Ardakilic](https://avatars.githubusercontent.com/u/2063957?v=4)](https://github.com/Ardakilic "Ardakilic (1 commits)")

---

Tags

nlpphpstemvowel

### Embed Badge

![Health badge](/badges/yasinkuyu-turkish/health.svg)

```
[![Health](https://phpackages.com/badges/yasinkuyu-turkish/health.svg)](https://phpackages.com/packages/yasinkuyu-turkish)
```

PHPackages © 2026

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