PHP code example of vatsim / xml

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

    

vatsim / xml example snippets


'providers' => array(
    // ...
    'Vatsim\Xml\XmlServiceProvider',
),

'aliases' => array(
    // ...
    'VatsimXML'       => 'Vatsim\Xml\Facades\Xml',
),

VatsimXML::getData(980234)

VatsimXML::getData(980234, "idstatusint") // Receive basic data, but with numeric ratings rather than verbose.
VatsimXML::getData(980234, "idstatusprat") // Receive the previous rating, for ADM, SUP or INS accounts.
VatsimXML::getData(980234, "idstatusrat") // Get the number of hours controlled at each rating level.