PHPackages                             advanced-solutions/iceland-electronic-id - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. advanced-solutions/iceland-electronic-id

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

advanced-solutions/iceland-electronic-id
========================================

A Laravel package for islands.is socialite integration

1.0.8(1y ago)013MITPHPPHP ^7.4|^8.0

Since Jul 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/suprun-bohdan/iceland-electronic-id)[ Packagist](https://packagist.org/packages/advanced-solutions/iceland-electronic-id)[ RSS](/packages/advanced-solutions-iceland-electronic-id/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (10)Used By (0)

Iceland Electronic ID Integration for Laravel
=============================================

[](#iceland-electronic-id-integration-for-laravel)

This package provides integration for Iceland's electronic ID system with Laravel Socialite.

Installation
------------

[](#installation)

1. **Require the package via Composer:**

    ```
    composer require advanced-solutions/iceland-electronic-id
    ```
2. **Publish the configuration file:**

    ```
    php artisan vendor:publish --provider="AdvancedSolutions\IcelandElectronicId\IslandsServiceProvider"
    ```
3. **Add the Iceland Electronic ID configuration to your:**

    ```
    ISLANDS_CLIENT_ID=your-client-id
    ISLANDS_CLIENT_SECRET=your-client-secret
    ISLANDS_REDIRECT_URI=your-redirect-uri
    ```
4. **Add the configuration to `config/services.php:`**

    ```
    'islands' => [
    'client_id' => env('ISLANDS_CLIENT_ID'),
    'client_secret' => env('ISLANDS_CLIENT_SECRET'),
    'redirect' => env('ISLANDS_REDIRECT_URI'),
    ],
    ```

Usage
-----

[](#usage)

1. **Add routes to your api.php (for example):**```
    use Illuminate\Support\Facades\Route;
    use App\Http\Controllers\Auth\LoginController;

    Route::get('login/islands', [LoginController::class, 'redirectToIslands']);
    Route::get('login/islands/callback', [LoginController::class, 'handleIslandsCallback']);
    ```
2. **Update your LoginController:**```
    class AuthController extends Controller
    {
    protected $islandsService;

       public function __construct(IslandsService $islandsService)
       {
           $this->islandsService = $islandsService;
       }

       public function redirectToIslands()
       {
           $query = http_build_query([
               'client_id' => config('islands.client_id'),
               'redirect_uri' => config('islands.redirect_uri'),
               'response_type' => 'code',
               'scope' => 'openid profile',
               'state' => csrf_token(),
           ]);

           return redirect('https://identity-server.staging01.devland.is/connect/authorize?' . $query);
       }

       public function handleIslandsCallback(Request $request)
       {
           $code = $request->get('code');

           try {
               $tokenData = $this->islandsService->authenticate($code);
               $userInfo = $this->islandsService->getUserInfo($tokenData['access_token']);

               // Find or create user logic
               $user = User::firstOrCreate(
                   ['email' => $userInfo['email']],
                   ['name' => $userInfo['name']]
               );

               Auth::login($user, true);

               return redirect()->intended('dashboard');
           } catch (\Exception $e) {
               return redirect('/login')->withErrors(['error' => $e->getMessage()]);
           }
       }
    }
    ```
3. **Update the User model if necessary:**```
    ...
    class User extends Authenticatable
    {
    use Notifiable;

    /**
     * The attributes that are mass assignable.
       *
       * @var array
       */
    protected $fillable = [
          'name', 'email', 'password',
    ];

    /**
     * The attributes that should be hidden for arrays.
       *
       * @var array
       */
    protected $hidden = [
          'password', 'remember_token',
    ];
    }
    ```

Testing
-------

[](#testing)

To test the Iceland Electronic ID integration, simply navigate to the login route:

```
   http://your-app-url/login/islands

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

9

Last Release

650d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68917732d92d2e87b3f7f4bdbacd5ab25ff465b9bb422a983c2fdb1855c22a2a?d=identicon)[sundamax](/maintainers/sundamax)

---

Top Contributors

[![suprun-bohdan](https://avatars.githubusercontent.com/u/99832644?v=4)](https://github.com/suprun-bohdan "suprun-bohdan (13 commits)")

### Embed Badge

![Health badge](/badges/advanced-solutions-iceland-electronic-id/health.svg)

```
[![Health](https://phpackages.com/badges/advanced-solutions-iceland-electronic-id/health.svg)](https://phpackages.com/packages/advanced-solutions-iceland-electronic-id)
```

###  Alternatives

[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[pitchanon/facebook-connect

A Laravel package for connecting to the Meta (Facebook) Graph API.

264.3k1](/packages/pitchanon-facebook-connect)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
