Download the PHP package polaris/laravel without Composer
On this page you can find all versions of the php package polaris/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download polaris/laravel
More information about polaris/laravel
Files in polaris/laravel
Package laravel
Short Description Laravel adapter for Polaris for PHP: service provider, routes, guard, mail bridge, artisan commands
License MIT
Informations about the package laravel
polaris/laravel
Polaris for PHP in a Laravel 13 application: a service
provider that builds Polaris from config/polaris.php on Laravel's database connection, cache, logger,
events and mailer; the 52 endpoints as Laravel routes; a polaris guard for your own routes; the
polaris:* artisan commands. Every response is the one the framework-free core sends: the whole
functional suite and the 184 contract fixtures replay through Laravel's HTTP kernel in CI.
Install
Secrets come from the environment (.env):
php artisan polaris:doctor checks them, the manifest and the database; php artisan route:list shows
the routes (polaris.auth.login, ...), mounted under path_prefix (/ by default).
Configure
config/polaris.php maps one to one to Polaris\Wiring\Config. Every port takes null (the core
default), a class name or container binding, or an object:
| Key | Meaning |
|---|---|
path_prefix, middleware |
Where the routes are mounted; Laravel middleware to add (none by default, Polaris brings its own stack) |
secrets |
app_key, jwt_private_key, jwt_public_key, jwt_kid, the previous-key pair; each also as <key>_file |
auth, rate_limits |
The docs/auth/configuration.md keys; anything left out keeps core's default |
database |
null (the default connection), a connection name, or a DatabaseAdapter |
cache, log |
A cache store / log channel name, or null for the defaults |
mailer |
log (codes go to the log), mail (Laravel's mailer with the polaris::mail.* views, --tag=polaris-views to publish), or an OtpMailerInterface |
sms |
log, or an SmsSenderInterface |
breach_check, clock, encrypter, metrics, totp, qr_codes, rate_store, dispatcher |
Optional ports |
plugins |
Polaris\Contract\Plugin class names, bindings or instances; their tables, routes, services, listeners and permissions join core's |
Use
Artisan: polaris:install, polaris:schema:export, polaris:schema:diff, polaris:manifest --format=json|openapi, polaris:doctor.
The demo under examples/laravel
is a complete host in a dozen files.
License
MIT. Polaris for PHP is created and maintained by 2am.tech.
All versions of laravel with dependencies
laravel/framework Version ^13.0
nyholm/psr7 Version ^1.8
polaris/cli Version ^0.12
polaris/core Version ^0.12
polaris/pdo Version ^0.12
polaris/psr15 Version ^0.12
symfony/psr-http-message-bridge Version ^7.4 || ^8.0