PHP Turkiye Regex: Validate values of people with regular expressions

Recommend this page to a friend!
  Info   View files Documentation   View files View files (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-06-29 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 11 All time: 10,437 This week: 213Up
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  
Name: Isa Eken <contact>
Classes: 13 packages by
Country: Turkey Turkey
Age: 19
All time rank: 338354 in Turkey Turkey
Week rank: 185 Up4 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 8x

Details

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  
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

  Files folder image Files  /  src  
File Role Description
Files folder imageInterfaces (1 file)
Files folder imageValidators (9 files)
  Plain text file TurkiyeRegex.php Class Class source

  Files folder image Files  /  src  /  Interfaces  
File Role Description
  Plain text file ValidatorInterface.php Class Class source

  Files folder image Files  /  src  /  Validators  
File Role Description
  Plain text file CarPlate.php Class Class source
  Plain text file CellPhone.php Class Class source
  Plain text file CreditCard.php Class Class source
  Plain text file Date.php Class Class source
  Plain text file Identity.php Class Class source
  Plain text file Phone.php Class Class source
  Plain text file TaxNumber.php Class Class source
  Plain text file TcKimlikNo.php Class Class source
  Plain text file Validator.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file FactoryTest.php Class Class source
  Plain text file ValidatorTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:11
This week:0
All time:10,437
This week:213Up
For more information send a message to info at phpclasses dot org.