PHPackages                             aozisik/php-turkce - 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. aozisik/php-turkce

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

aozisik/php-turkce
==================

Turkish language friendly string manipulation functions for PHP.

v2.1.0(3y ago)292.1k↓33.3%3MITPHP

Since Apr 27Pushed 3y ago3 watchersCompare

[ Source](https://github.com/aozisik/turkce)[ Packagist](https://packagist.org/packages/aozisik/php-turkce)[ RSS](/packages/aozisik-php-turkce/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

   ![](banner.png)
[![](https://github.com/aozisik/turkce/workflows/run-tests/badge.svg)](https://github.com/aozisik/turkce/workflows/run-tests/badge.svg)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/fca88a4d8f6a00872b2b7ff4c62db57f6a36cdb013bb544102c2c397f6b3f05d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616f7a6973696b2f7068702d7475726b63652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aozisik/php-turkce)

Ne yapar?
---------

[](#ne-yapar)

- PHP'nin `strtoupper` ve `strtolower` fonksiyonları Türkçe ile uyumsuzdur. Bu paket, i ve I harflerini bozmadan büyük ve küçük harfe çevirir.
- Verilen Türkçe sözcüğü veya özel ismi, istenen eke göre çekimler. (-e, -i, -in, -de, -den)

Kurulum
-------

[](#kurulum)

```
composer require aozisik/php-turkce
```

Kullanım
--------

[](#kullanım)

### Basit kullanım:

[](#basit-kullanım)

Büyük/küçük harfe çevirme metotlarının başına `tr_` ekleyerek kullanın.

- `strtoupper` -&gt; `tr_strtoupper`
- `strtolower` -&gt; `tr_strtolower`

### Alternatif kullanım:

[](#alternatif-kullanım)

```
// Büyültme
turkce('izmirin ılık ilkbaharları')->buyuk(); // İZMİRİN ILIK İLKBAHARLARI

// Küçültme
turkce('İZMİRİN ILIK İLKBAHARLARI')->kucuk(); // izmirin ılık ilkbaharları

// Başlık
turkce('İZMİRİN ILIK İLKBAHARLARI')->baslik(); // İzmirin Ilık İlkbaharları
```

### İsmin Hallerine Çekimleme

[](#i̇smin-hallerine-çekimleme)

İsimlerin yanına gelen ekleri koda gömersek "Ahmet'nin" veya "Hikmet'ye" gibi Türkçe'ye uygun olmayan ve hiç doğal gözükmeyen bir sonuç elde ederiz. Onun yerine, bırakın Türkçe paketi ismi uygun haline çeksin.

```
// Çekimleme
turkce('İstanbul')->den(); // "İstanbul'dan"
turkce('Hatice')->i(); // "Hatice'yi"
turkce('Kemal')->in(); // "Kemal'in"
turkce('Kazım')->e(); // "Kazım'a"
turkce('Asu')->de(); // "Asu'da"

// Hatta bunu diğer özelliklerle de birleştirebilirsiniz:
turkce('güzel İstanbul')->dan()->baslik(); // "Güzel İstanbul'dan"
```

Kullanılabilen ekler:

- `i` (belirtme)
- `e` (yönelme)
- `de` (bulunma)
- `den` (ayrılma)
- `in` (iyelik)

#### Özel isim / genel isim ayrımı

[](#özel-isim--genel-isim-ayrımı)

İsmin hallerine çekimlerken, kütüphane son sözcüğün baş harfini özel genel isim ayrımı yapmak için kullanır. Eğer son sözcük büyük harfle başlıyorsa, özel isim olarak kabul edilir. Bu durumda, hal ekinden önce kesme işareti kullanılır.

Örneğin:

```
turkce('İstanbul')->den(); // "İstanbul'dan"
turkce('bakkal')->den(); // "bakkaldan"
```

### Sonucu string olarak dönme

[](#sonucu-string-olarak-dönme)

Eğer sonucu `Sozcuk` sınıfı değil, string olarak almak isterseniz aşağıdaki yöntemlerden birini kullanabilirsiniz:

```
turkce('güzel İstanbul')->dan()->baslik()->yap(); // (string) "Güzel İstanbul'dan"

// veya
(string) turkce('güzel İstanbul')->dan()->baslik(); // (string) "Güzel İstanbul'dan"
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

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 ~787 days

Total

3

Last Release

1368d ago

Major Versions

v1.0.0 → v2.0.02021-01-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/735011?v=4)[Ahmet Özışık](/maintainers/aozisik)[@aozisik](https://github.com/aozisik)

---

Top Contributors

[![aozisik](https://avatars.githubusercontent.com/u/735011?v=4)](https://github.com/aozisik "aozisik (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aozisik-php-turkce/health.svg)

```
[![Health](https://phpackages.com/badges/aozisik-php-turkce/health.svg)](https://phpackages.com/packages/aozisik-php-turkce)
```

###  Alternatives

[caseyamcl/toc

Simple Table-of-Contents Generator for PHP. Generates TOCs based off H1...H6 tags

92344.9k5](/packages/caseyamcl-toc)[worksome/feature-flags

A package to manage feature flags in your application

11506.3k](/packages/worksome-feature-flags)[matthieumastadenis/couleur

A modern PHP 8.1+ color library, compatible with CSS Color Module Level 4

3038.5k3](/packages/matthieumastadenis-couleur)[bastinald/laravel-bootstrap-components

Laravel Bootstrap Blade components.

481.3k1](/packages/bastinald-laravel-bootstrap-components)

PHPackages © 2026

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