1. Go to this page and download the library: Download conkal/yoksis-rest-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
conkal / yoksis-rest-client example snippets
$pass = getenv('YOKSIS_PASSWORD');
$user = getenv('YOKSIS_USERNAME');
$auth = new \Conkal\YOKSIS\REST\Utilities\BasicAuth($user, $pass);
$client = new \Conkal\YOKSIS\REST\YOK('https://servisler.yok.gov.tr/resttest/obs/');
$client->setAuth($auth);