Exports flights from phpVMS to the CSV format required by Volanta.
https://github.com/avs-code/volantaWidget
- 📅 Customisable date selection
- 🔽 Direct download in CSV format
- 📊 Flight preview in table format
- 🎯 Specific format for Volanta
- 🔒 Only visible to the user themselves
- phpVMS 7.x
- PHP >=8.1
- Users with registered flights (PIREPs)
- Allows you to select a date range
- Displays a table with flights for the period
- Generates CSV in Volanta format
- Includes: origin, destination, times, aircraft, etc.
VolantaExportFlights.php → app/Widgets/VolantaExportFlights.php
volanta_export_flights.blade.php → resources/views/widgets/volanta_export_flights.blade.php
├── app/
│ └── Widgets/
│ └── VolantaExportFlights.php
└── resources/
└── views/
└── widgets/
└── volanta_export_flights.blade.php
resources/views/layouts/your_theme_name/profile/index.blade.php
{{-- Widget Volanta Export Flights - Only visible to the user themselves --}}
@if (Auth::check() && $user->id === Auth::user()->id)
<div class="row mt-5">
<div class="col-sm-12">
@widget('VolantaExportFlights')
</div>
</div>
@endifIn administration panel->maintenance->Clear all caches
- Go to your profile (/profile)
- You should see the ‘Volanta Export Flights’ widget
- Select dates and test the CSV download
- Delete the 2 copied files
- Remove the lines added to the profile file
- Clear cache
- The CSV includes these columns for Volanta:
- Origin, Destination, DepartureTime, Duration, Airline, Callsign, FlightNumber, AircraftType, AircraftRegistration, Route, ArrivalTime, Distance, Fuel
- Go to your profile (/profile).
- Click on Volanta Export button.
- Select dates and click over Search flights.
- Click again on Volanta Export button to see the results.
- Click on Download CSV for Volanta.
- In your Volanta app, Settings -> Data Import/Export -> Manual -> Select CSV.
- Select Data to import, Aircraft and Flights, the selected data will merged in aircraft case, or duplicated in fligths case, so select only flights that you don't actually have in Volanta.
- Click on Begin Import.