PHPackages                             rs/auth-medikey - 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. rs/auth-medikey

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

rs/auth-medikey
===============

Authentication for medikey service

v1.6.1(3mo ago)02.3kMITPHPPHP ^8.0CI passing

Since Sep 3Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/RedSnapper/auth-medikey)[ Packagist](https://packagist.org/packages/rs/auth-medikey)[ Docs](https://github.com/rs/auth-medikey)[ RSS](/packages/rs-auth-medikey/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (12)Used By (0)

Medikey Authentication
======================

[](#medikey-authentication)

[![Latest Version on Packagist](https://camo.githubusercontent.com/027432b39129e5f81ceb494f7122b1ba19f787e291b0f62085f87103a7ff97d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72732f617574682d6d6564696b65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rs/auth-medikey)[![Total Downloads](https://camo.githubusercontent.com/9d9d193ba4c49af60dc8ea32698a140bb5f3316b9aed4d4b0701584b3fc06b00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72732f617574682d6d6564696b65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rs/auth-medikey)[![GitHub Actions](https://github.com/rs/auth-medikey/actions/workflows/main.yml/badge.svg)](https://github.com/rs/auth-medikey/actions/workflows/main.yml/badge.svg)

Medikey is the innovative service that allows the certification and the recognition of the Italian physicians: a single initial process of registration allows the physician to obtain two univocal access keys (username and password) through which one can automatically access all the reserved websites that have adhered to Medikey, avoiding new, long and repetitive registrations for each website.

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

[](#installation)

You can install the package via composer:

```
composer require rs/auth-medikey
```

Usage
-----

[](#usage)

Before using auth-medikey, you will need to add the site id for your implementation of Medikey. These credentials should be placed in your application's config/services.php configuration file, and should use the key medikey.

```
'medikey' => [
    'site_id' => env('MEDIKEY_SITE_ID','5')
]
```

Authentication
--------------

[](#authentication)

To authenticate users using the Medikey provider, you will need two routes: one for redirecting the user to the provider, and another for receiving the callback from the provider after authentication. The example controller below demonstrates the implementation of both routes:

```
use RedSnapper\Medikey\MedikeyProvider;

Route::get('/auth/redirect', function (MedikeyProvider $provider) {
    return $provider->redirect();
});

Route::get('/auth/callback', function (MedikeyProvider $provider) {
    $user = $provider->user();
});
```

The redirect method provided takes care of redirecting the user to the provider, while the user method will read the incoming request and retrieve the user's information from the provider after they are authenticated.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Param Dhaliwal](https://github.com/rs)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~180 days

Recently: every ~154 days

Total

10

Last Release

97d ago

PHP version history (3 changes)v1.0.0PHP ^7.4|^8.0

v1.2.0PHP ^8.1

v1.3.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1785064?v=4)[Mr Ben Griffin](/maintainers/MrBenGriffin)[@MrBenGriffin](https://github.com/MrBenGriffin)

![](https://avatars.githubusercontent.com/u/6851104?v=4)[rstechnical](/maintainers/rstechnical)[@rstechnical](https://github.com/rstechnical)

---

Top Contributors

[![joeuk89](https://avatars.githubusercontent.com/u/6736852?v=4)](https://github.com/joeuk89 "joeuk89 (8 commits)")[![paramdhal](https://avatars.githubusercontent.com/u/1278858?v=4)](https://github.com/paramdhal "paramdhal (5 commits)")[![cammackmatthew](https://avatars.githubusercontent.com/u/10643740?v=4)](https://github.com/cammackmatthew "cammackmatthew (3 commits)")

---

Tags

rsmedikey

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rs-auth-medikey/health.svg)

```
[![Health](https://phpackages.com/badges/rs-auth-medikey/health.svg)](https://phpackages.com/packages/rs-auth-medikey)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[jurager/teams

Laravel package to manage team functionality and operate with user permissions.

22817.3k](/packages/jurager-teams)

PHPackages © 2026

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