PHP code example of nikba / bus-system-php-sdk

1. Go to this page and download the library: Download nikba/bus-system-php-sdk 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/ */

    

nikba / bus-system-php-sdk example snippets


$bussystem = new \Nikba\BusSystemPhpSdk\BusSystem(
    'BASE URL', 
    'LOGIN', 
    'PASSWORD', 
    'en'
);

# Get All Countries
$params = ['viev' => 'get_country'];
$points = $bussystem->getPoints($params);
http
  POST /server/curl/get_points.php
http
  POST /server/curl/get_routes.php
http
  POST /server/curl/get_plan.php
http
  POST /server/curl/get_free_seats.php
http
  POST /server/curl/get_discount.php
http
  POST /server/curl/get_all_routes.php
http
  POST /server/curl/new_order.php
http
  POST /server/curl/buy_ticket.php
http
  POST /server/curl/reg_ticket.php
http
  POST /server/curl/cancel_ticket.php
http
  POST /server/curl/get_ticket.php
http
  POST /server/curl/get_order.php
http
  POST /server/curl/get_orders.php
http
  POST /server/curl_partner/get_orders.php
http
  POST /server/curl_partner/get_tickets.php
http
  POST /server/curl_dispatcher/get_tickets.php
http
  POST /server/curl/get_cash.php