Download the PHP package silotech/validate-sl-number without Composer
On this page you can find all versions of the php package silotech/validate-sl-number. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download silotech/validate-sl-number
More information about silotech/validate-sl-number
Files in silotech/validate-sl-number
Download silotech/validate-sl-number
More information about silotech/validate-sl-number
Files in silotech/validate-sl-number
Vendor silotech
Package validate-sl-number
Short Description A simple function to validate a Sierra Leone Number with the present NDC's
License MIT
Package validate-sl-number
Short Description A simple function to validate a Sierra Leone Number with the present NDC's
License MIT
Please rate this library. Is it a good library?
Informations about the package validate-sl-number
Validate SL Number
A PHP package to validate Sierra Leone phone numbers and return them in a fully qualified format with country code.
π¦ Installation
Install via Composer:
If your package is in development and you want to allow unstable versions, you can specify:
βοΈ Usage
Include Composerβs autoload file and call the function:
π Function
Validates a Sierra Leone phone number and returns it in fully qualified format with +232 if valid.
Parameters:
$phone_number (string)β The phone number to validate.
Acceptable formats:
+232xxxxxxxx00232xxxxxxxx- Local format:
0xxxxxxxx
Returns:
stringβ Fully qualified phone number if valid (e.g.,+23276111222)falseif invalid
π Examples
π Requirements
- PHP >= 7.4
- Composer
π Development
If you are developing or updating this package:
π License
MIT License. See the LICENSE file for details.
π’ Author
Simeon Michael
GitHub Profile
All versions of validate-sl-number with dependencies
PHP Build Version
Package Version
No informations.
The package silotech/validate-sl-number contains the following files
Loading the files please wait ...