netkod-bilisim / tr-string
It provides functions to help with the problem of converting Turkish text to uppercase and lowercase in PHP.
v1.0.0
2023-07-27 14:04 UTC
Requires
- php: >=7.4
- ext-mbstring: *
This package is auto-updated.
Last update: 2025-03-27 18:37:28 UTC
README
Introduction
It provides functions to help with the problem of converting Turkish text to uppercase and lowercase in PHP.
Requirements
- PHP >= 7.4
- PHP mbstring extension
Install
composer require netkod-bilisim/tr-string
Usage
include "./vendor/autoload.php"; # Make a string uppercase dd( tr_strtoupper('Pijamalı hasta yağız şoföre çabucak güvendi.') ); # Result: PİJAMALI HASTA YAĞIZ ŞOFÖRE ÇABUCAK GÜVENDİ. # Make a string lowercase dd( tr_strtolower('PİJAMALI HASTA YAĞIZ ŞOFÖRE ÇABUCAK GÜVENDİ.') ); # Result: pijamalı hasta yağız şoföre çabucak güvendi. # Make a string's first character uppercase dd( tr_uppercase_first('pijamalı hasta yağız şoföre çabucak güvendi.') ); # Result: Pijamalı hasta yağız şoföre çabucak güvendi. # Make a string's first character lowercase dd( tr_lowercase_first('Pijamalı hasta yağız şoföre çabucak güvendi.') ); # Result: pijamalı hasta yağız şoföre çabucak güvendi. # Uppercase the first character of each word in a string dd( tr_ucwords('Pijamalı hasta yağız şoföre çabucak güvendi.') ); # Result: Pijamalı Hasta Yağız Şoföre Çabucak Güvendi.
License
This package is open source software licensed under the MIT License.