Download the PHP package chrishaensel/ivao-data without Composer

On this page you can find all versions of the php package chrishaensel/ivao-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ivao-data

IVAO-Data

The IVAO data library is a very simple PHP class to download IVAO whazzup data.

IMPORTANT

This is work in progress! This is not the best code you will ever see. But it might help you. Good luck.

IVAO API Information

You can find more information on the IVAO API and the retrievval of the whazzup data in the IVAO wiki: IVAO WIKI auf.

Usage

  1. Clone this repo or composer-require it git clone https://... or composer require chrishaensel/ivao-data
  2. Create a new instance of the IVAO class $ivao = new \chrishaensel\Ivao("My app name v.1.1");
  3. Download the data $ivao->downloadIvaoWhazzupData();

Options

When instantiating the Ivao class, you must pass your application's name as the first parameter. $ivao = new \chrishaensel\Ivao("My app name v1.1"), otherwise it will fail with an exception. IVAO requires you to pass your application name as User Agent string when downloading the data.

As second parameter, you can pass an array with other options. Currently, the only supported option is create_json. When set to 1, the library will create a JSON file of the ATC and PILOT data contained in the whazzupt.txt file.

When calling the downloadIvaoWhazzupData method, you can pass a parameter (string) with the target path / filename for the whazzup data. $ivao->downloadIvaoWhazzupData("my_whazzup.txt"") will cause the script to save the data in the file my_whazzup.txt.

IVAO Rules

IVAO does have some rules regarding the download of whazzup data.

Most importantly:

These files may only be obtained after an official clearance from the IVAO Development Operations Department!

IVAO-data does take care of the timing - you need to ask for permission :)

Some sample code

This way, you can use the Ivao class. We're using naspaces, so there won't be conflicts with other libraries you might use.

Sample output of the JSON file

The whazzup data will be split in two parts within the JSON. "PILOT" and "ATC" - both are arrays of the connected parties.

Questions? Remarks?


All versions of ivao-data with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package chrishaensel/ivao-data contains the following files

Loading the files please wait ....