Repository navigation
VapidConfig
Viames Marino edited this page Feb 22, 2026
·
1 revision
Pair\Push\VapidConfig reads Web Push VAPID settings from environment.
Required .env variables:
PUSH_VAPID_PUBLICPUSH_VAPID_PRIVATEPUSH_VAPID_SUBJECT
Each method throws RuntimeException if value is missing/empty.
$config = new \Pair\Push\VapidConfig();
$public = $config->publicKey();
$private = $config->privateKey();
$subject = $config->subject();-
subjectshould be a contact URL ormailto:value. - Keep private key secret and never expose it to frontend.
- Public key is the one used by browser subscription flows (
PairPush.subscribe).
See also: WebPushSender, PushDispatcher, Configuration-file.
Maintained by Viames Marino — VM Ingegneria · Professional enquiries
Home · Setup · Configuration
Build with Pair 4
- Generator
- Controllers and responses
- Read models
- ActiveRecord and queries
- Forms and validation
- PairUI.js and HTML fragments
APIs and authentication
- API guide and CRUD
- Middleware and rate limits
- Users, sessions, and ACL
- Passkeys and social login
- Native mobile setup
Integrate and operate
- Integrations
- Runtime extensions and adapter keys
- Cache and cache stores
- Logs and observability
- PWA and push
- Packages and distribution
- Upgrade to v4