PHP
Will this support PHP ?
What is your question? SimpleLogin is not written in PHP if that is what you're wondering about. You can review the full source code here on GitHub.
What is your question? SimpleLogin is not written in PHP if that is what you're wondering about. You can review the full source code here on GitHub.
I would like to implement the API in PHP but i not found any libraries to do it.
I think i posted in the wrong repo btw.
implement the API
If by "implementing" you mean that you want to send requests to the SimpleLogin API in your PHP app, then the answer would be yes, you can use any programming language.
Simple example:
$api_key = "your_api_key";
$api_root = "https://app.simplelogin.io";
$api_route = "/api/v5/alias/options";
$header = [
"Content-Type: application/json",
"Cache-Control: no-cache",
"User-Agent: Name of your app",
"Authentication: $api_key",
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
curl_setopt($ch, CURLOPT_POST, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, null);
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_URL, $api_root . $api_route);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$result = json_decode(curl_exec($ch), true);
var_dump($result);
Sorry for the delay, thanks for your answer, i'll try it and i will comeback to confirm if it's working or not later.