parse-holy-land-phone / parse-phone
Parse israeli/Palestinian phone numbers
Installs: 960
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/parse-holy-land-phone/parse-phone
Requires
- php: ^8.1
Requires (Dev)
- laravel/pint: ^1.14
- pestphp/pest: ^2.25
- phpstan/phpstan: ^1.11
README
Parse Holy land (Israel/Palestine) phone numbers
Installation
composer require parse-holy-land-phone/parse-phone
usage
// via new instance $number = new ParsePhone('025121234'); // via static method $number = ParsePhone::create('025121234'); $number->isValid();
Available methods
isValidChecks if phone number is a valid Israeli/Palestinian phone number.isIsraeliChecks if phone number is Israeli.isPalestinianChecks if phone number is Palestinian.isLandLineChecks if phone number is LandLine.isSpecialChecks if phone number is Special (*1234).isMobileChecks if phone number is Mobile.isBusinessChecks if phone number is Business (1700, 1800, etc).isTollFreeChecks if phone number is TollFree (1800, etc).isPremiumChecks if phone number is Premium (1900, etc).isKosherChecks if phone number is Kosher (phone supports only calls).isEroticChecks if phone number is Erotic (1919).isSmsableChecks if phone number can receive an sms (text) .getInternationalReturns phone number transformed to international format 025231234 > 97225231234.getLocalReturns phone number transformed to local format 97225231234 > 025231234.getPhoneNumberReturns the parsed phone number.
all is functions have a reverse function isNot.
Community contributors
- Biny Yawitz