Download the PHP package mariojgt/masterkey without Composer
On this page you can find all versions of the php package mariojgt/masterkey. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mariojgt/masterkey
More information about mariojgt/masterkey
Files in mariojgt/masterkey
Download mariojgt/masterkey
More information about mariojgt/masterkey
Files in mariojgt/masterkey
Vendor mariojgt
Package masterkey
Short Description MasterKey - Minimal QR-based auth for Laravel + Ionic (no Sanctum).
License MIT
Package masterkey
Short Description MasterKey - Minimal QR-based auth for Laravel + Ionic (no Sanctum).
License MIT
Please rate this library. Is it a good library?
Informations about the package masterkey
MasterKey (Laravel package)
QR-based login bridge between your Laravel app and the MasterKey mobile app (Ionic). No Sanctum. Minimal and production-ready.
Highlights
- Permanent or expiring API tokens (config).
- Pre-login QR → 6-digit code → app token.
- Web/admin login via QR scanned by authenticated app.
- Logout QR triggers event/callback for your custom logic.
- Tiny
auth.tokenmiddleware for Bearer tokens.
Install
Add a path repo if using from source:
Config (config/masterkey.php)
token_expires_days→ null = never expire (default).post_login_redirect→ where browser goes after QR approval.logout_callback_route→ optional HTTP callback you implement.qr_prefix→ defaultmkey:.
Routes
- Public:
GET /login-qr→ Blade page that displays QR and polls status.GET /api/web/status?session_id=→ polled by the page.POST /api/app/request-code{email}→ returns{nonce, code, qr_payload}(demo returns code).POST /api/app/verify{nonce, code}→ returns{token, user}.
- Authenticated (with Bearer token via app):
POST /api/web/approve{session_id}→ approves web login.POST /api/logout-qr→ fires event for your logout logic.
Protect API
Client app
You can download here MasterKey app.
All versions of masterkey with dependencies
PHP Build Version
Package Version
The package mariojgt/masterkey contains the following files
Loading the files please wait ...