A-Lawrence / VatsimXML by A-Lawrence

A simple laravel package for retrieving data from public VATSIM XML Feeds.
2,142
1
7
Package Data
Maintainer Username: A-Lawrence
Maintainer Contact: freelancer@anthonylawrence.me.uk (Anthony Lawrence)
Package Create Date: 2014-08-15
Package Last Update: 2020-11-14
Language: PHP
License: MIT
Last Refreshed: 2024-11-15 03:01:37
Package Statistics
Total Downloads: 2,142
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 7
Total Forks: 3
Total Open Issues: 0

VatsimXMLFeeds

The Vatsim Xmlfeeds package is a useful laravel 5 package for accessing data publically presented via VATSIMs XML feeds.

Version

2.2 (Lumen Supported)

Installation

Use Composer to install the VatsimXML and dependencies.

$ composer require vatsim/xml 2.*

Laravel

Set up

Using VatsimXML in Laravel is made easy through the use of Service Providers. Add the service provider to your config/app.php file:

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

Followed by the alias:

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

Configuration file

You should not need to modify the default configuration file supplied by the package.

Usage

Getting data

This lightweight package only has one main function: getData

If you don't specify a URL to use, you will be given basic user details.

VatsimXML::getData(980234)

Other possible data requests are as follows.

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.