PHP code example of hasokeyk / yurt-ici-kargo

1. Go to this page and download the library: Download hasokeyk/yurt-ici-kargo 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/ */

    

hasokeyk / yurt-ici-kargo example snippets



    
    urticiKargo\yurticiKargo;
    
    $yurtici = new yurticiKargo([
        'username' => 'XXXXXXXXXXX',
        'password' => 'XXXXXXXXXXX',
        'test'     => true //TEST MODE true / false
    ]);
    
    //CREATE CARGO
    $kargoYolla = $yurtici->createCargo([
        'cargoKey'         => 'HSN-0000001',
        'invoiceKey'       => 'TEST-0000001',
        'receiverCustName' => 'Hasan Yüksektepe',
        'receiverAddress'  => 'Test Adres',
        'receiverPhone1'   => '05414233558',
    ]);
    print_r($kargoYolla);
    //CREATE CARGO



    
    urticiKargo\yurticiKargo;
    
    $yurtici = new yurticiKargo([
        'username' => 'XXXXXXXXXXX',
        'password' => 'XXXXXXXXXXX',
        'test'     => true //TEST MODE true / false
    ]);
    
    //CREATE CARGO
    $kargoYolla = $yurtici->createCargo([
        'cargoKey'         => 'HSN-0000001',
        'invoiceKey'       => 'TEST-0000001',
        'receiverCustName' => 'Hasan Yüksektepe',
        'receiverAddress'  => 'Test Adres',
        'receiverPhone1'   => '05414233558',
    ]);
    print_r($kargoYolla);
    //CREATE CARGO



    
    argo\yurticiKargo;

	$yurtici = new yurticiKargo([
		'username' => 'XXXXXXXXXXX',
		'password' => 'XXXXXXXXXXX',
		'test'     => true //TEST MODE true / false
	]);

	//CREATE CARGO
	$kargoYolla = $yurtici->createCargo([
		'cargoKey'          => 'HSN-0000001',
		'invoiceKey'        => 'TEST-0000001',
		'receiverCustName'  => 'Hasan Yüksektepe',
		'receiverAddress'   => 'Test Adres',
		'receiverPhone1'    => '05414233558',
	]);
	print_r($kargoYolla);
	//CREATE CARGO