https://github.com/mahammad-mostafa/queritel-practical-task
A quick test done for Queritel in PHP & MySQL
https://github.com/mahammad-mostafa/queritel-practical-task
api mysql php
Last synced: 10 months ago
JSON representation
A quick test done for Queritel in PHP & MySQL
- Host: GitHub
- URL: https://github.com/mahammad-mostafa/queritel-practical-task
- Owner: mahammad-mostafa
- Created: 2021-10-03T00:37:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-03T01:15:19.000Z (over 4 years ago)
- Last Synced: 2025-02-02T13:51:20.808Z (11 months ago)
- Topics: api, mysql, php
- Language: PHP
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QueritelPractical
The repository contains two PHP files.
Convert file is a script that converts a given CSV file to an SQL file.
Api file is a simple API to handle fetching data from the countries table.
The API accepts payload as GET requests only.
There is only two GET parameters which is (`name` & `fields`).
The name parameter takes any country name or `all` to display names and phone codes.
The fields parameter takes an array of field names for the table columns.
Field names are (`Country Name`, `ISO2`, `ISO3`, `Top Level Domain`, `FIPS`, `ISO Numeric`, `GeoNameID`, `E164`, `Phone Code`, `Continent`, `Capital`, `Time Zone in Capital`, `Currency`, `Language Codes`, `Languages`, `Area KM2`, `Internet Hosts`, `Internet Users`, `Phones (Mobile)`, `Phones (Landline)`, `GDP`).