- Frontend/AirportController: drop airportRepo, use
Airport::with('files')->find($id) ($id was already uppercased
earlier in the method)
- Frontend/PirepController: drop airportRepo from constructor
(only reference was a commented-out selectBoxList call). Phase
2 precedent (Aircraft was the same case).
- Filament/Actions/ExportAction: AIRPORT case uses Airport::all()
- Delete app/Repositories/AirportRepository.php (dead selectBoxList
goes with it)
- phpstan.neon: suppress larastan.relationExistence for
FilesTrait::files() across Aircraft/Airline/Airport/Subfleet.
The morphMany is trait-defined and works at runtime, but
larastan can't statically resolve trait-declared polymorphic
relations. First direct Eloquent with('files') call lands in
this commit, hence the new suppression.
Final commit of Phase 3. AirportRepository is gone; 9 repositories
remain (was 10 at branch start). First Query class
(AirportSearchQuery) and search Form Request (SearchAirportsRequest)
are now in production, ready to be reused by Phases 4/6/7.
|
||
|---|---|---|
| .github | ||
| .hooks | ||
| app | ||
| bin | ||
| bootstrap | ||
| config | ||
| database | ||
| modules | ||
| public | ||
| resources | ||
| routes | ||
| storage | ||
| tests | ||
| .editorconfig | ||
| .env.example | ||
| .gitignore | ||
| .htaccess | ||
| .oxfmtrc.json | ||
| .oxlintrc.json | ||
| artisan | ||
| CHANGELOG.md | ||
| composer.json | ||
| composer.lock | ||
| Directory.Build.props | ||
| docker-compose.example.yml | ||
| docker-compose.sail.yml | ||
| Dockerfile | ||
| intellij_style.xml | ||
| LICENSE | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| phpstan.neon | ||
| phpunit.xml | ||
| pint.json | ||
| Procfile | ||
| README.md | ||
| rector.php | ||
| symfony.lock | ||
| version.json | ||
| vite.config.js | ||
phpVMS 8
phpVMS is a PHP application to run and simulate an airline. It allowed users to register, view flight schedules that you create, and file flight reports, built on the Laravel framework. The latest documentation, with installation instructions is available on the phpVMS documentation site.
Installation
A full distribution, with all the composer dependencies, is available at this GitHub Releases link.
Requirements
- PHP 8.3+, extensions:
- cURL
- JSON
- fileinfo
- mbstring
- openssl
- pdo
- tokenizer
- intl
- zip
- Database:
- MySQL 5.7+ (or MySQL variant, including MariaDB and Percona)
View more details on requirements
Installer
- Upload to your server
- Visit the site, and follow the link to the installer
Development Environment with Docker
A full development environment can be brought up using Docker and Laravel Sail, without having to install composer/npm locally
make docker-test
# **OR** with docker directly
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php84-composer:latest \
composer install --ignore-platform-reqs
# Then you can start sail
./vendor/bin/sail up
Then go to http://localhost.
Instead of repeatedly typing vendor/bin/sail to execute Sail commands, you may wish to configure a shell alias that allows you to execute Sail's commands more easily:
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
Then you can execute php, artisan, composer, npm, etc. commands using the sail prefix:
# PHP commands within Laravel Sail...
sail php --version
# Artisan commands within Laravel Sail...
sail artisan about
# Composer commands within Laravel Sail...
sail composer install
# NPM commands within Laravel Sail...
sail npm run dev
To interact with databases (MariaDB, Redis...), please refer to the Laravel Sail documentation
Building JS/CSS assets
Yarn is required, run:
make build-assets
This will build all the assets according to the webpack file.
Laravel Boost
If you want to use AI agents for your development workflow, please ensure you install Laravel Boost by running the following command:
php artisan boost:install
Contributors
Thank you to everyone who've contributed to phpVMS!