PHP code example of w3designweb / laravel-qapla

1. Go to this page and download the library: Download w3designweb/laravel-qapla 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/ */

    

w3designweb / laravel-qapla example snippets

 php
// config/app.php

'providers' => [
    ...
    W3design\Qapla\QaplaServiceProvider::class,
],

'aliases' => [
    ...
    'Qapla' => W3design\Qapla\QaplaFacade::class,
],
 bash
php artisan vendor:publish --provider="W3design\Qapla\QaplaServiceProvider" --tag="config"
 php
use W3design\Qapla\Qapla;
...
$channel = new Qapla($privateApiKey, $publicApiKey);
 php
$data = array(...);
$channel->pushTrack($data);
 php
$channel->deleteTrack('2878202252347');
 php
$data = array(...);
$channel->pushOrder($data);
 php
$credits = $channel->getCredits();
 php
$couriers = $channel->getCouriers();