Skip to content

invernyx/smartcars-3-phpvms5-api

Repository files navigation

smartCARS 3 phpVMS 5 API

Web Script Files for smartCARS 3 in phpVMS 5

Introduction

smartCARS 3 is a web-based flight tracking system for virtual airlines. It is a complete rewrite of the original smartCARS system, and is designed to be more flexible and easier to use. This repository contains the web script files for smartCARS 3 in phpVMS 5.

Requirements

  • phpVMS 5.X
  • PHP 5.6 or higher
  • MySQL 5.6 or higher
  • PHP Database Objects (PDO) Extension
  • A webserver that accepts the Authorization header (Apache, nginx, etc.)
    • If you are using a shared hosting provider, you may need to contact them to enable this feature.

Installation

The smartCARS 3 phpVMS 5 API uses "handlers", which represent the platforms it is communicating with. We support phpVMS 5 in this repository, but custom handlers can be written for other platforms.

For phpVMS 7 support, please go to the phpVMS 7 repository instead.

Step 1

Download the latest release from the releases page.

Step 2

Extract the contents of the release zip file to an empty folder which is in the same directory as your installation (a core folder should exist in this directory).

Step 3 (nginx only)

If you are using nginx as your webserver, you will need to serve the smartCARS API as a seperate location. An example configuration is below:

location /smartcars/api {
    try_files $uri $uri/ /smartcars/api.php?$query_string;
}

You will need to modify this configuration to fit your needs and to point to the correct location.

Step 4

Verify that the installation was successful by visiting the handler file in your browser. You should see a JSON response with the version number of the API and the name of your handler.

Assuming you have placed phpVMS 5 in your public_html folder and your API folder is called smartcars: http://yourdomain.com/smartcars/api/phpvms5/

This URL will be the "Script URL" option in smartCARS 3 Central when managing your community.

About

The API responsible for connecting smartCARS to phpVMS 5

Resources

License

Security policy

Stars

Watchers

Forks

Languages