```php
<?php

require_once '../../core/api_bootstrap.php';

$data=Request::get();

try {

Validator::required($data,['provider_id']);

$db=new Database();
$conn=$db->connect();

$query="

SELECT

k.*,
p.name,
p.phone

FROM provider_kyc k

JOIN providers p
ON k.provider_id=p.id

WHERE k.provider_id=:provider_id
LIMIT 1

";

$stmt=$conn->prepare($query);

$stmt->execute([
':provider_id'=>$data['provider_id']
]);

$kyc=$stmt->fetch();

Response::success($kyc);

}
catch(Exception $e){

Logger::log("system.log",$e->getMessage());
Response::error("Server error",500);

}