conkal/yokas-rest-client

A library to consume YOKAS REST API

v1.0.2 2024-09-30 19:27 UTC

This package is auto-updated.

Last update: 2024-11-30 19:47:22 UTC


README

This is a PHP client for the YOKAS REST API.

Requirements

  • PHP 7.0 or higher

Installation

composer require conkal/yokas-rest-client

Usage

use Conkal\YOKAS\Client;
$client = new Client("host", "username", "password", "yokasid);

//create a request
$request = new OgrKabulEkleGuncelleRequest();

//set request parameters
$request->universiteid = $client->id;
$request->basvuruno = rand(100000, 999999);
$request->kimlikno = "123456";
$request->pasaportno = "123456";
$request->adi = "Test";
$request->soyadi = "Test";
$request->cinsiyet = "E";
$request->babaadi = "Test";
$request->anneadi = "Test";
$request->kayityili = "2023";
$request->kayitdonemi = "1";
$request->uyrugu = "ZWE";
$request->dogumtarihi = "01.01.2000";
$request->dogumyeri = "Test";
$request->ogrgelisdurum = "0";

//execute the request
$response = $this->client->execute($request);

//check if the request was successful
$this->assertTrue($response->isSuccessful());