PHP code example of isaeken / php-turkiye-regex

1. Go to this page and download the library: Download isaeken/php-turkiye-regex library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

isaeken / php-turkiye-regex example snippets


use IsaEken\TurkiyeRegex\TurkiyeRegex;

TurkiyeRegex::CellPhone("05231231212");
TurkiyeRegex::Phone("01231231212");
TurkiyeRegex::TaxNumber("1234567890");

use IsaEken\TurkiyeRegex\TurkiyeRegex;

TurkiyeRegex::CellPhone(["05231231212", "05231231212"]); // true
TurkiyeRegex::Phone("01231231212"); // true
TurkiyeRegex::Identity("1234567890"); // false
TurkiyeRegex::TaxNumber("1234567890"); // true
TurkiyeRegex::CreditCard("1111222233334444"); // true
TurkiyeRegex::CarPlate("34A2344"); // true
TurkiyeRegex::Date("10.04.2002"); // true

// alias
TurkiyeRegex::CellPhoneNumber("05231231212"); // true
TurkiyeRegex::PhoneNumber("01231231212"); // true
TurkiyeRegex::IdentityNumber("1234567890"); // false
TurkiyeRegex::Tax("1234567890"); // true
TurkiyeRegex::CreditCardNumber("1111222233334444"); // true
TurkiyeRegex::Plate("34A2344"); // true
TurkiyeRegex::BirthDate("10.04.2002"); // true
`shell
composer