Go to file
Nabeel Shahzad 7875219fdb
test(flights): match bids query dialect-agnostically
MySQL quotes identifiers with backticks, not double quotes, so the
from "bids" match found nothing on the mysql CI job. Strip both quote
styles before matching.
2026-07-06 17:37:32 -05:00
.github chore(tooling): use bun in release CI and drop package-lock.json 2026-06-14 13:28:10 +02:00
.hooks fix(pre-commit): add '--' to npm commands for proper argument handling 2026-04-25 10:15:33 +02:00
app docs(flights): document the with=bid token on get() 2026-07-06 16:45:11 -05:00
bin Updating styling and looks of the installer/admin/system filament pages (#2211) 2026-05-20 11:05:32 -05:00
bootstrap more refinement around the uninstall/removal process, added sample in for easier testing 2026-06-12 15:07:38 -05:00
config perf(settings): memoize setting() reads per request (Octane-safe) 2026-07-06 15:54:44 -05:00
database [8.x] feat(addons): add per-addon settings management (#2246) 2026-07-01 10:31:59 -05:00
docs refactor(addons): remove AddonRegistry, refactor boot cache handling, and update tests 2026-06-12 14:58:44 -05:00
modules [8.x] fix(addons): run enabled-module migrations and seeders reliably (#2251) 2026-07-01 17:42:53 -05:00
public fix: track frankenphp-worker.php for Docker build 2026-06-29 15:18:54 -05:00
resources Authoritative classmap causing frankenphp crash 2026-06-29 20:34:17 -05:00
routes fix(permissions): address CodeRabbit review feedback 2026-06-14 12:02:38 +02:00
storage fix(addons): keep ModuleService working post-nwidart 2026-06-12 14:58:44 -05:00
tests test(flights): match bids query dialect-agnostically 2026-07-06 17:37:32 -05:00
.dockerignore Fix/admin links (#2250) 2026-07-01 13:39:09 -05:00
.editorconfig postgres fixes 2026-06-01 18:38:58 -05:00
.env.example Fix assets not building 2026-06-02 17:11:08 -05:00
.gitignore Fix/admin links (#2250) 2026-07-01 13:39:09 -05:00
.htaccess Remove vendor from .htaccess (#1994) 2025-02-14 14:24:19 -06:00
.mise.toml More test fixes 2026-06-02 15:40:01 -05:00
.oxfmtrc.json postgres fixes 2026-06-01 18:38:58 -05:00
.oxlintrc.json Updating styling and looks of the installer/admin/system filament pages (#2211) 2026-05-20 11:05:32 -05:00
artisan [8.x] refactor: migrate to the new modern laravel structure (#2207) 2026-05-07 14:58:11 -05:00
bun.lock chore(deps): bump vite to 8.0.16 for stable rolldown 2026-06-14 12:08:58 +02:00
CHANGELOG.md add oxlint and oxfmt 2026-03-18 23:17:18 +01:00
compose.deploy.yml Fix/admin links (#2250) 2026-07-01 13:39:09 -05:00
compose.sail.yml Fix/admin links (#2250) 2026-07-01 13:39:09 -05:00
compose.test.yml Fix/admin links (#2250) 2026-07-01 13:39:09 -05:00
composer.json Merge branch 'main' into feat/roles-permissions 2026-06-18 20:20:06 +02:00
composer.lock chore(deps): swap filament-shield for spatie/laravel-permission 2026-06-14 11:16:44 +02:00
Dockerfile.prod fix: build not completely working 2026-07-03 11:43:01 -05:00
LICENSE Update LICENSE 2024-10-15 09:14:15 -05:00
mago.toml stupid pint errors 2026-06-13 00:40:11 -05:00
package.json chore(deps): bump vite to 8.0.16 for stable rolldown 2026-06-14 12:08:58 +02:00
phpstan.neon feat(schema-modernization): foundations for RouteForge 2026-05-23 12:05:09 -05:00
phpunit.xml postgres fixes 2026-06-01 18:38:58 -05:00
pint.json add oxlint and oxfmt 2026-03-18 23:17:18 +01:00
railpack.json fix: build not completely working 2026-07-03 11:43:01 -05:00
README.md chore(tooling): use bun in release CI and drop package-lock.json 2026-06-14 13:28:10 +02:00
rector.php refactor(addons): remove deprecated tests, update service bindings, and improve addon handling 2026-06-12 14:58:44 -05:00
tsconfig.json feat(routeforge): admin batch flight composer + lint pipeline 2026-05-24 11:55:33 -05:00
vite.config.js feat(routeforge): admin batch flight composer + lint pipeline 2026-05-24 11:55:33 -05:00
vitest.config.ts test(routeforge): pest + vitest coverage + service fixes 2026-05-24 11:55:36 -05:00

phpVMS 8 - Build, Fly, Extend

BuildStyleCILicense

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:

    • PostgreSQL 16+
    • MySQL 8.0+
    • MariaDB 10.6+
    • Redis 6.0+ (optional, recommended)

View more details on requirements

Production Deployment with Docker

The reference production stack is compose.deploy.yml. It runs the official phpvms image (built from the repo Dockerfile, based on serversideup/php:8.5-frankenphp) with Laravel Octane worker mode enabled, plus PostgreSQL and Redis. No separate web-server sidecar is needed — FrankenPHP serves HTTP/HTTPS directly.

docker compose -f compose.deploy.yml up -d

Octane worker mode

The image itself ships with serversideup's default classic FrankenPHP entry point (one PHP worker per request). compose.deploy.yml opts into Laravel Octane worker mode via a command: override on the app service — the pattern documented upstream.

To fall back to classic FrankenPHP + PHP-worker mode (matches the prior PHP-FPM request semantics — slower per request but bulletproof if a worker-mode bug hits), delete the command: line from the app service and recreate the container:

services:
  app:
    # command: [...octane:start...]   # remove this line

Module authors: under Octane the framework stays booted across requests, so avoid per-request data in singleton-bound services, static array accumulators, and boot()-time toggles without a matching per-request reset. See app/Http/Middleware/DisableActivityLoggingByDefault.php for the pattern used to keep activity logging request-scoped.

Development Environment

The development environment uses mise. You can read about mise and install it from here. If you want mise to handle installing the correct PHP version, you can run:

mise install

If you install the mise shell script integration, the correct PHP version will automatically be selected for you.~~~~

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

# Bun commands within Laravel Sail...
sail bun 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!