authn-sh / sdk-php-laravel
Laravel package for authn.sh — service provider, middleware, Blade directives, facade. Wraps authn-sh/sdk-php for Laravel 11+.
Requires
- php: ^8.2
- ext-json: *
- authn-sh/sdk-php: ^0.1
- illuminate/cache: ^11.0 || ^12.0
- illuminate/contracts: ^11.0 || ^12.0
- illuminate/support: ^11.0 || ^12.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.10
- mockery/mockery: ^1.6
- nyholm/psr7: ^1.8
- orchestra/testbench: ^9.0 || ^10.0
- pestphp/pest: ^3.0
- phpstan/phpstan: ^2.1
This package is auto-updated.
Last update: 2026-05-03 12:10:32 UTC
README
Laravel package for authn.sh — auto-discovered service provider, container bindings, middleware, Blade directives, and an Authn facade. Wraps authn-sh/sdk-php for Laravel 11+.
Status: 0.1.x pre-release. Bindings, middleware, and Blade directives land in SPL-2 / SPL-3. This release is a bootstrap-only skeleton.
Requirements
- PHP 8.2+
- Laravel 11+ (
^11.0 || ^12.0) - A PSR-18 HTTP client (Guzzle, Symfony HttpClient, etc.) — required by the underlying
authn-sh/sdk-phpSDK and auto-discovered viaphp-http/discovery.
Install
composer require authn-sh/sdk-php-laravel
The service provider auto-discovers. Once SPL-2 lands you'll be able to publish the config:
php artisan vendor:publish --tag=authn-config
…and resolve the SDK from the container or via the Authn facade.
Development
composer install composer test # Pest + Orchestra Testbench composer phpstan # PHPStan + Larastan @ level 10 composer pint # code style check composer pint:fix # apply fixes
CI runs the full suite on the PHP 8.2 / 8.3 / 8.4 / 8.5 × Laravel 11 / 12 matrix.