PHP Classes

PHP Turkiye Regex: Validate values of people with regular expressions

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 17 All time: 11,405 This week: 660Up
Version License PHP version Categories
php-turkiye-regex 1.0Custom (specified...5PHP 5, Validation
Description 

Author

This package is specific mainly for applications used in Turkey Turkey .

This class can validate the values of people with regular expressions.

It can take strings with several types of values that people from Turkey can use to identify them or something they own.

Currently, it can validate phone numbers, identity numbers, credit card numbers, car plates, and dates.

Picture of Isa Eken
  Performance   Level  
Innovation award
Innovation award
Nominee: 14x

 

Documentation

PHP için Türkiye Regex Kütüphanesi

Türkiye formatlar?na uygun Regex kütüphanesi.

use IsaEken\TurkiyeRegex\TurkiyeRegex;

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

Kurulum

Paketi composer kullanarak kurabilirsiniz.

composer require isaeken/php-turkiye-regex

Kullan?m

`interface IsaEken\TurkiyeRegex\Interfaces\Validator\Interface`

`validate(string|array $validate): bool`

Girilen string veya string[] de?erlerini kulland???n?z s?n?fta do?rulamas?n? yapar.

Fonksiyonlar

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

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.


  Files folder image Files (17)  
File Role Description
Files folder imagesrc (1 file, 2 directories)
Files folder imagetests (2 files)
Plain text file composer.json Data Auxiliary data
Plain text file LICENSE.md Lic. License text
Plain text file phpunit.xml.dist Data Auxiliary data
Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:17
This week:0
All time:11,405
This week:660Up