Mobile ISP is a PHP project that provides information about a phone number sent to the endpoint. It retrieves details such as the ISP (Internet Service Provider), country information, country dial code, and phone number in international format. Currently, the endpoint supports phone number lookups for Nigeria, Ghana, Egypt, and South Africa.
- Download the project files.
- Extract the files to your server directory.
- Include the
autoload.php
file located inside theapp
folder in your project.
To perform a phone number lookup, use the following syntax:
<?php
require_once('app/autoload.php');
// Make a lookup
$response = Provider::check('your_phone_number_here');
// This method allows you to specify the country if you can which also improves the processing time
$response = Provider::get('country name', 'your_phone_number_here');
// Handle the response
echo $response;
?>
Replace your_phone_number_here
with the phone number you want to lookup, and country name
with the correct country name (spaces included)
The Provider::check()
and Provider::get()
method returns a JSON response with all the information needed.
Contributions to Mobile ISP are welcomed! Feel free to submit pull requests or open issues if you encounter any problems or have suggestions for improvement.
This project does not rely on any external dependencies, making it easy to set up and use.
This project is licensed under the MIT License.