Skip to content
Learn

phpVMS

How to connect phpVMS 7 to Stratos ACARS

To connect phpVMS 7 to Stratos, upload the free Stratos Core API module under Modules, Add New Module in your phpVMS admin and enable it. Then create your airline on skyvexsoftware.com and verify your endpoint, your phpVMS address plus /api/stratos. Pilots sign in with their phpVMS username and password.

Jordan HavardFounder, Skyvex Software · Updated

If your virtual airline (VA) runs phpVMS 7, Stratos connects to it through Skyvex Software's Stratos modules for phpVMS (Stratos Core API and Stratos Logbook API). They're free, open source and MIT-licensed, and they add the endpoints Stratos needs while reading and writing phpVMS's own data, so your site and records keep working as they are. (New to modules? phpVMS modules explains how they plug in.)

Setup on skyvexsoftware.com is one guided journey, and this walkthrough follows it with the phpVMS side filled in. You can leave at any point: your airline's Overview shows what's left, and Continue takes you back in. The VA onboarding guide has the detail for every screen.

Before you start

  • Airline access. Stratos is in early access, and airline access is currently by request from the Skyvex Software homepage.
  • phpVMS 7 with admin access. You need the Add New Module option in the admin sidebar. The modules don't run on phpVMS 5 or the in-development phpVMS 8. If phpVMS 7 isn't installed yet, start with the phpVMS installation guide.
  • PHP 8.2 or newer on your host.
  • HTTPS on your phpVMS site. The Verify step checks for it.
  • Stratos installed on your own computer, so you can fly the first flight yourself. It's free for Windows, macOS and Linux from the download page.

There's nothing extra to install in the simulator. Stratos reads Microsoft Flight Simulator (MSFS) through SimConnect and X-Plane through datarefs directly, and supports FSX and Prepar3D too.

Step 1: create your airline

  1. Sign in at skyvexsoftware.com. With no airline yet, you land on Welcome.
  2. Choose I run a virtual airline, then Create your airline.
  3. Paste your VA's website. Skyvex Software reads your name, ICAO code, logo and colours from it and checks what it runs on. Check the details it found.
  4. No website yet? Choose No website yet, or a custom backend?, type the name and ICAO code (2 to 4 letters), and pick phpVMS 7.
  5. Click Create. You go straight into the Connect step.

Step 2: install Stratos Core API

Stratos Core API is the required module. It handles pilot sign-in, reads your fleet, airports, news and bids, and runs the flight from start to filed PIREP.

  1. Download the module zip from the Connect step. Keep it zipped.
  2. In your phpVMS admin, open Modules, then Add New Module, and upload the zip. phpVMS extracts it to modules/StratosCore.
  3. On the Modules list, find StratosCore and click Enable.

Prefer the server? Unzip it into your phpVMS modules/ folder instead. The zip holds a StratosCore folder, so you end up with modules/StratosCore. If someone else runs your site, Copy the steps for them copies these instructions to send on.

Step 3: check the module is live

Open your site plus /api/stratos/ in a browser (for example https://crew.yourairline.com/api/stratos/). It should return a short JSON response with the API version and "handler": "Stratos".

From phpVMS 7.0.10, enabling a module clears phpVMS's module caches for you. On older phpVMS 7 releases, a 404 or the phpVMS welcome page here usually means stale caches: use Admin, Maintenance, Clear all caches (or php artisan optimize:clear), then check again.

Step 4: add the Logbook API (optional)

Stratos Logbook API is a read-only module that shows each pilot their phpVMS flight history in Stratos and on the platform: their PIREPs, each flight's route and event log, and lifetime stats. It files nothing.

Choose Yes, install the Logbook API in the Connect step, then install it like Core and enable StratosLogbook (Core must be enabled first). Choose No thanks to skip it; you can add it later.

Step 5: verify the connection

The Stratos endpoint URL is your phpVMS address plus /api/stratos, for example https://crew.yourairline.com/api/stratos, and it's filled in for you. Click Verify. Skyvex Software checks that:

  • your site is reachable over HTTPS
  • the Stratos module answers
  • the Logbook API answers, if you chose to install it

The address is only saved once the checks pass. You can change it later in your airline's Settings, Connection, and pilots keep using the old address until a new Verify passes.

Step 6: sign in as a pilot

The journey now waits for the first sign-in. Open Stratos on your computer and:

  1. Choose Invite code in the airline list and enter the code the journey shows. (Your airline isn't in the Stratos airline directory yet.)
  2. Sign in with your own phpVMS pilot username and password.

The setup screen lights up as soon as Stratos connects.

Next is an optional Make it yours screen for logos and colours, which show in every open Stratos within seconds. Click Looks good, take off, or Configure later to skip.

Step 7: fly and file the first PIREP

Book a flight on your phpVMS site, start it in Stratos and take off. The journey follows it on a departures board. Land, park and submit. Setup finishes when the first PIREP is filed, and the journey shows its block time and landing score.

Check in phpVMS that the PIREP has the right pilot, route and times. ACARS for phpVMS explains how the flight data reaches it.

Bring your pilots across

Pilots find your airline in Stratos two ways, and you can use both:

  • Your invite code. The 6-character code on Settings, General, entered under Invite code in Stratos's airline list. It works whether or not you're listed, so it suits a staged rollout or a private VA. New code stops the old one working, and pilots who've already joined stay joined.
  • The Stratos airline directory. Turn it on under Settings, Listing and any pilot can find you and ask to join. You need light and dark logos uploaded first, and on the Free plan, 25 completed flights with Stratos. The tab shows what's left.

From there, each pilot:

  1. Downloads Stratos and finds your airline.
  2. Signs in with their phpVMS username and password.
  3. Gets your airline's plugins installed automatically: Dashboard, Flight Tracking, Landing Analyser, the Logbook plugin and any you've added.
  4. Books a flight on your site, flies it and submits it.

How pilots sign in

By default, pilots sign in with their phpVMS username and password, and Stratos uses their phpVMS API key behind the scenes, so they authenticate once.

If you'd rather pilots never type their phpVMS password into Stratos, switch to OAuth. That needs an OAuth server on your phpVMS install that supports public clients with PKCE. Fill in Settings, Connection, OAuth set-up and run Test sign-in; pilots move across once a test passes. The OAuth set-up guide covers it step by step.

What ends up in phpVMS

Stratos dataWhere it goes in phpVMS
The filed flightA native phpVMS PIREP, ready for staff review
Position reports during the flightphpVMS's ACARS records, so the flight shows on your live map
Extra fields you choose to sendCustom PIREP fields, when Where PIREP fields go is set to Nested (the default for new airlines)
Bids, fleet, airports and newsRead from phpVMS when Stratos needs them

Stratos Core API owns no tables of its own, so uninstalling it leaves your phpVMS database as it was. The Additional Fields reference lists every extra field you can send.

Troubleshooting

ProblemFix
Handshake returns 404 or the phpVMS welcome pageStale caches, most often before phpVMS 7.0.10. Use Admin, Maintenance, Clear all caches, or run php artisan optimize:clear
"Class not found" errors after installingRun php artisan optimize:clear. If it persists, delete bootstrap/cache/stratos_core_module.php and run it again
Pilot gets "unauthorised" with the right detailsCheck their phpVMS account is active, and that they used their phpVMS password, not their API key
Logbook API won't loadStratos Core API must be installed and enabled first
A pilot's logbook is emptyTheir PIREPs are still "in progress" or another unfinished state; only pending, accepted and rejected PIREPs appear

To update either module, upload the new zip under Add New Module (phpVMS overwrites the old files). Before phpVMS 7.0.10, clear the caches again afterwards.

Frequently asked questions

Is the Stratos phpVMS module free?

Yes. Stratos Core API and Stratos Logbook API are free and open source under the MIT licence, so you can read, fork or improve the code.

Do pilots need their phpVMS API key for Stratos?

No. Pilots sign in with their phpVMS username and password, and Stratos handles the API key for them. If you switch to OAuth, they sign in on your phpVMS site instead.

Does Stratos work with phpVMS 5 or phpVMS 8?

Not yet. The Stratos modules are built for phpVMS 7. They don't run on phpVMS 5, and they won't run on phpVMS 8 while it's still in development.

Do I need the Logbook API?

No. Stratos Core API is all Stratos needs to fly and file PIREPs. Add the Logbook API if you want pilots to see their phpVMS flight history in Stratos.

Can I connect Stratos without phpVMS?

Yes. Choose Use a custom backend instead in the Connect step, and point Stratos at a backend that implements the open Stratos API.

Where Stratos fits

Stratos is the free ACARS client by Skyvex Software, and this is the whole connection: your phpVMS 7 site stays your airline's backend, and pilots never pay. The Stratos API modules guide is the reference for both modules.

Stratos by Skyvex Software

Bring Stratos
to your airline.

Free for every pilot, and it works with phpVMS or your own backend. We onboard each airline personally and make sure it works with your setup before you go live.

Related