ecphp / laravel-ecas
A bundle for Laravel, providing authentication against European Commission Authentication System (ECAS) server.
1.0.0
2024-09-10 14:20 UTC
Requires
- php: >= 8.1
- ext-dom: *
- ext-simplexml: *
- ecphp/ecas: ^3.0
- ecphp/laravel-cas: ^1.0
- laravel/framework: ^10 || ^11
Requires (Dev)
- ecphp/php-conventions: ^1.0
- guzzlehttp/guzzle: ^7.9
- nyholm/psr7: ^1.8
- orchestra/testbench: ^8.26 || ^9.4
- phpstan/phpstan-strict-rules: ^1.6
- roave/security-advisories: dev-latest
- symfony/cache: ^6.4 || ^7.1
- symfony/psr-http-message-bridge: ^v6.4 || ^7.1
This package is auto-updated.
Last update: 2024-10-10 14:30:02 UTC
README
An ECAS bundle for Laravel.
Installation
composer require ecphp/laravel-ecas
config/app.php
'providers' => [
...
EcPhp\LaravelEcas\Providers\LaravelEcasProvider::class,
],
app/Providers/AppServiceProvider.php
<?php
declare(strict_types=1);
use Illuminate\Contracts\Foundation\Application;
use loophp\psr17\Psr17Interface;
use Nyholm\Psr7\Factory\Psr17Factory;
use loophp\psr17\Psr17;
public function register(): void
{
$this->app->bind(
Psr17Interface::class,
function(Application $app): Psr17Interface {
$psr17Factory = new Psr17Factory();
//or whatever psr17 you want
return new Psr17(
$psr17Factory,
$psr17Factory,
$psr17Factory,
$psr17Factory,
$psr17Factory,
$psr17Factory
);
}
);
}