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>
@endif
In 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