Axion: VPN subscription management
An admin panel that sells and manages VPN subscriptions: it creates and revokes Outline VPN keys automatically, picks the least-busy server and tracks payments.
- Laravel 12
- Filament 4
- PHP 8.2
- MySQL
- Outline API
- GitHub Actions
Axion is an admin panel for a business that sells VPN access (Outline and similar proxy services). It replaces manual work: creating access keys by hand, tracking who has paid, and remembering to switch off expired customers.
Features
- Customers and subscriptions: create a subscription for a customer, choose a service (platform, region, duration, price) and apply a discount.
- Automatic VPN keys: creating a subscription creates an access key on an Outline server through its API. Keys can be renamed or deleted from the panel.
- Smart server choice: the system picks an active server that supports the platform in the right region, has free capacity, and has the fewest active customers.
- Extensions: extend an active subscription with a matching service; the new period starts the day after the current one ends and is recorded as a separate payment.
- Automatic expiry: a scheduled job runs every night, expires subscriptions that ended and revokes their VPN keys. Another job notifies admins at 6 pm about subscriptions ending tomorrow.
- Payment settlement ("clears"): group each admin's uncollected payments up to a date into one settlement batch, so it's clear who collected how much.
- Dashboard: revenue chart and key numbers, CSV export of subscriptions, and a log viewer.
- Roles and permissions for each admin user (Filament Shield and Spatie Permission).
Technical highlights
- Business logic lives in service classes (provisioning, server selection, extension, lifecycle, settlement), not in the UI.
- Creating a subscription, its payment record and its VPN key happens inside one database transaction, so a failure never leaves half-created data.
- If revoking a key on a server fails, the error is saved on that record and logged, and the nightly job carries on with the rest.
- Pushing to
maindeploys automatically to the server over SSH with GitHub Actions.