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

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

rs/auth-doccheck
================

DocCheck

v1.1.0(2y ago)04MITPHPPHP ^8.0

Since May 5Pushed 2y ago4 watchersCompare

[ Source](https://github.com/RedSnapper/auth-doccheck)[ Packagist](https://packagist.org/packages/rs/auth-doccheck)[ Docs](https://github.com/rs/auth-doccheck)[ RSS](/packages/rs-auth-doccheck/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

DocCheck Authentication
=======================

[](#doccheck-authentication)

With the DocCheck Login you are able to very simply establish a protected area on your site, which is only accessible to (medical) professionals The DocCheck password protection is an identification service for medical sites which is compliant with the German law for pharmaceutical commercial information HWG (Heilmittelwerbegesetz)

[![Latest Version on Packagist](https://camo.githubusercontent.com/12b119bf5c85313013f9bff89b8e840ff962e8c03d43729f56aaf4e3fda14dea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72732f617574682d646f63636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rs/auth-doccheck)[![GitHub Tests Action Status](https://github.com/redsnapper/auth-doccheck/workflows/run-tests/badge.svg)](https://github.com/redsnapper/auth-doccheck/actions)[![Total Downloads](https://camo.githubusercontent.com/d0bd7010c37d1be0a94fc64a5cdcc80505d678555f026cc03676d413fc7b1fac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72732f617574682d646f63636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rs/auth-doccheck)

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

[](#installation)

You can install the package via composer:

```
composer require rs/auth-doccheck
```

Configuration
-------------

[](#configuration)

Before using DocCheck, you will need to add credentials for the provider.

```
DOCCHECK_LOGIN_ID=123
DOCCHECK_SECRET=my-secret

```

The doc check secret is optional and provides greater security.When acquiring the Economy or Business Licence you obtain a secret key from DocCheck.

If you need to overwrite the config, you can publish them using the vendor:publish Artisan command:

```
php artisan vendor:publish --tag=doccheck
```

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

[](#authentication)

DocCheck provides an iframe for allowing users to login using their service. This package allows for generation of the iframe url.

```
use RedSnapper\DocCheck\DocCheckProvider;

Route::get('/login', function (DocCheckProvider $provider) {
    $provider->language("de")->template("login_s");
    return view('login',['url'=>$provider->iframeUrl()])
});
```

The iframe can be further configured to use which language and which template that is appropriate. Available languages are de, com, fr, it, es, nl, frbe. Available templates are "login\_s", "login\_m", "login\_l", "login\_xl".

To authenticate users using the Doccheck, you will need a route for receiving the callback from the provider after authentication. The example controller below demonstrates the implementation:

It is also possible to generate the iframe markup directly.

```
use RedSnapper\DocCheck\DocCheckProvider;

Route::get('/login', function (DocCheckProvider $provider) {
    return $provider->iframe();
});
```

```
use RedSnapper\DocCheck\DocCheckProvider;

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

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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~725 days

Total

2

Last Release

795d ago

### Community

Maintainers

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

---

Top Contributors

[![paramdhal](https://avatars.githubusercontent.com/u/1278858?v=4)](https://github.com/paramdhal "paramdhal (7 commits)")[![cammackmatthew](https://avatars.githubusercontent.com/u/10643740?v=4)](https://github.com/cammackmatthew "cammackmatthew (2 commits)")

---

Tags

doccheckrs

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[althinect/filament-spatie-roles-permissions

3481.1M10](/packages/althinect-filament-spatie-roles-permissions)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1563.0k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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