Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2021-06-29 (2 months ago) | | Not yet rated by the users | | Total: 11 | | All time: 10,399 This week: 213 |
|
Description | | Author |
This package is specific mainly for applications used in 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. | |
|
|
Innovation award
Nominee: 7x |
|
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.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.