Download the PHP package polaris/core without Composer
On this page you can find all versions of the php package polaris/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package core
Short Description Polaris for PHP core: authentication, MFA/OTP, sessions, multi-tenant organizations and RBAC, framework-free
License MIT
Informations about the package core
polaris/core
The framework-free core of Polaris for PHP:
self-hosted authentication, MFA/OTP, sessions with rotating refresh tokens, multi-tenant
organizations and RBAC, an audit log and PSR-14 events. Namespace Polaris\. It depends only
on PSR interfaces and a few libraries (lcobucci/jwt, spomky-labs/otphp, endroid/qr-code,
symfony/uid, symfony/yaml).
Install
You also need an HTTP adapter and a database adapter: polaris/psr15 for any PSR-15 host and
polaris/pdo for PostgreSQL, MySQL or SQLite (polaris/testing has an in-memory adapter for
tests). polaris/cli adds bin/polaris for schema export and diff, the manifest and doctor.
Use
Every port has a working default (in-memory cache, log mailer and SMS sender, system clock, libsodium encrypter, PSR-3 metrics); pass your own to replace it.
What is in the package
| Directory | Contents |
|---|---|
api/ |
The HTTP contract: one YAML spec per endpoint, loaded at runtime as the router |
src/Contract |
The ports: database adapter, repositories, tokens, encrypter, mailer, SMS, rate store, metrics |
src/Identity, src/Mfa, src/Token, src/Authorization |
The domain services |
src/Http |
Input, Result, the Endpoint base, the endpoints, the manifest loader |
src/Schema, src/Model, src/Repository |
The schema as data, the plain models, the repositories over any DatabaseAdapter |
src/Wiring |
Config and Graph: the object graph, built explicitly |
Documentation
The specification (flows, data model, MFA, RBAC, security, the API reference) lives in the
monorepo under docs/auth/;
the Slim demo under
examples/slim/ is the
smallest complete host.
License
MIT. Polaris for PHP is created and maintained by 2am.tech.
All versions of core with dependencies
ext-sodium Version *
endroid/qr-code Version ^6.0
lcobucci/jwt Version ^5.6
psr/clock Version ^1.0
psr/event-dispatcher Version ^1.0
psr/http-client Version ^1.0
psr/http-message Version ^1.1 || ^2.0
psr/http-server-middleware Version ^1.0
psr/log Version ^3.0
psr/simple-cache Version ^3.0
spomky-labs/otphp Version ^11.3
symfony/uid Version ^7.0 || ^8.0
symfony/yaml Version ^7.0 || ^8.0