Download the PHP package patrikgrinsvall/laravel-bankid without Composer
On this page you can find all versions of the php package patrikgrinsvall/laravel-bankid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download patrikgrinsvall/laravel-bankid
More information about patrikgrinsvall/laravel-bankid
Files in patrikgrinsvall/laravel-bankid
Package laravel-bankid
Short Description Swedish BankId integration for Laravel 8
License MIT
Homepage https://github.com/patrikgrinsvall/laravel-bankid
Informations about the package laravel-bankid
While this package is free to use, you can hire help of integrating it, contact [email protected]
Swedish BankID for Laravel 8 with Livewire
You will need laravel 8 to use route facade but it might work with earlier versions when using middleware. Livewire is a required dependency so it will be installed. I think however its possible to quite easy call the service from another controller action and it will work quite well.
Anyway, there are a plenthora of improvements to be made to this project but it is used in production for atleast one company. PRs are very welcome.
Installation
Composer:
-
Publish the config, views and transaltions with
- Then check in
app/config/bankid.php
for info on how to add your own certificates. - Views will be editable in your views directory
- Translations will be editable in defauit translations directory. Swedish and English are provided with package.
-
Usage
- Service provider should be auto discovered since larvel 8 so no need to register service provider.
- However i have noticed in many cases this does not work so usually:
- Register service provider
Patrikgrinsvall\LaravelBankid\BankidServiceProvider
inconfig/app.php
There are a few different ways to use this package
-
Use the supplied Route macro:
-
As a facade (this might work, dont remember.)
-
As a middleware, first register in App\Http\Kernel class: (WIP! Dont use yet!)
Then use in one of the following ways:
Retrieve authenticated user.
From facade:
Testing
Final notes.
- Basic authentication works for mobile devices.
- But alot in this package is not finished i will continue to iterate over it when need arises.
- PRs are welcome!
- Sign is not working.
- QR is not working.
- Same device is not working (bankid on fil)
The MIT License (MIT). Please see License File for more information.
All versions of laravel-bankid with dependencies
illuminate/contracts Version ^8.0
livewire/livewire Version ^2.4
spatie/laravel-package-tools Version ^1.4.3