PHPackages                             norse-blue/laravel-heimdall - 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. norse-blue/laravel-heimdall

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

norse-blue/laravel-heimdall
===========================

Heimdall is a code-driven authorization system for Laravel.

v0.1.0(5y ago)09MITPHPPHP ^7.4

Since Nov 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/norse-blue/laravel-heimdall)[ Packagist](https://packagist.org/packages/norse-blue/laravel-heimdall)[ Docs](https://github.com/norse-blue/laravel-heimdall)[ GitHub Sponsors](https://github.com/sponsors/axelitus)[ Fund](https://ko-fi.com/axelitus)[ RSS](/packages/norse-blue-laravel-heimdall/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (8)Versions (4)Used By (0)

Code-driven authorization system for Artisans
=============================================

[](#code-driven-authorization-system-for-artisans)

 [![Stable Release](https://camo.githubusercontent.com/929783ca2027d0091b62372e1cb2804df86fa450117018466051bcab71ad0c94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f7273652d626c75652f6c61726176656c2d6865696d64616c6c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d356538316163)](https://packagist.org/packages/norse-blue/laravel-heimdall) [![Build Status](https://camo.githubusercontent.com/5d01e725eaf27f00f7ceea85386c589e6353471a0aca89d5a68c48a8eff4c994/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e6f7273652d626c75652f6c61726176656c2d6865696d64616c6c2f72756e2d74657374732e7376673f7374796c653d666c61742d737175617265266c6162656c3d6275696c64266c6f676f3d676974687562266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d383863306430)](https://github.com/norse-blue/laravel-heimdall/actions?query=workflow%3Arun-tests) [![PHP Version](https://camo.githubusercontent.com/8fd0ef4b627938ac5a785366d4bbdfee1559e0f4ad7cd29dad028b6db379f3ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6f7273652d626c75652f6c61726176656c2d6865696d64616c6c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d706870266c6f676f3d706870266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d623438656164)](https://php.net/releases) [![Maintainability](https://camo.githubusercontent.com/785a7de55efb1165d19b21c85b3c71648bdb68cb4ef129e4dfbb38c4759e69a9/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6e6f7273652d626c75652f6c61726176656c2d6865696d64616c6c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d6d61696e7461696e6162696c697479266c6f676f3d636f64652d636c696d617465266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d383863306430)](https://codeclimate.com/github/norse-blue/laravel-heimdall) [![Test Coverage](https://camo.githubusercontent.com/25c3b30464239012dce72ae751893f3afaaaa3388b10d885375bb4af072da9d7/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6e6f7273652d626c75652f6c61726176656c2d6865696d64616c6c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d636f766572616765266c6f676f3d636f64652d636c696d617465266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d383863306430)](https://codeclimate.com/github/norse-blue/laravel-heimdall) [![Total Downloads](https://camo.githubusercontent.com/1a10efc4d7e4d6a425a3dab1889a7845a87c9ae460710d091660e426fa338940/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f7273652d626c75652f6c61726176656c2d6865696d64616c6c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d646f776e6c6f616473266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d383863306430)](https://packagist.org/packages/norse-blue/laravel-heimdall) [![License](https://camo.githubusercontent.com/3de134008bbcbb74fc624cc41a1c5207bef4be6fe045c940e6e2201174e3159a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6f7273652d626c75652f6c61726176656c2d6865696d64616c6c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d6c6963656e7365266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d613362653863)](https://github.com/norse-blue/laravel-heimdall/blob/master/LICENSE.md)

---

**Heimdall** is a package that aims to be an easy to use code-driven authorization system for Laravel. It is built upon the roles and permissions concepts.

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

[](#installation)

> Requirements:
>
> - [PHP 8.1+](https://php.net/releases)

Install this package using Composer:

```
composer require norse-blue/laravel-heimdall
```

You can publish the config file by running:

```
php artisan vendor:publish --provider="NorseBlue\Heimdall\HeimdallServiceProvider" --tag=heimdall-config
```

You can install the service provider by running:

```
php artisan heimdall:install
```

Usage
-----

[](#usage)

To get more in-depth knowledge about this package, please refer to the [Official Documentation](#).

Changelog
---------

[](#changelog)

Please refer to the [CHANGELOG.md](CHANGELOG.md) file for more information about what has changed recently.

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

[](#contributing)

Contributions to this project are accepted and encouraged. Please read the [CONTRIBUTING.md](.github/CONTRIBUTING.md) file for details on contributions.

Testing
-------

[](#testing)

To test this package run:

```
composer test
```

To find out the test coverage run:

```
composer coverage
```

To find issues by statically analyzing the code run:

```
composer analyse
```

To get code insights run:

```
composer insights
```

To fix styling issues run:

```
composer format
```

Credits
-------

[](#credits)

- [Axel Pardemann](https://github.com/axelitus)
- [All Contributors](../../contributors)

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review our [security policy](../../security/policy) to know how to report security vulnerabilities within this package.

Support the development
-----------------------

[](#support-the-development)

**Do you like this project? Support it by donating**

[![Buy me a coffee](docs/assets/images/buy-me-a-coffee.svg)](https://www.buymeacoffee.com/axelitus)

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT](LICENSE.md) license.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~2 days

Total

2

Last Release

2014d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61386558d4fa03cc9de21d20e76f396d5568e0e647e1cdf18f12c87f1a5f87b5?d=identicon)[axelitus](/maintainers/axelitus)

---

Top Contributors

[![axelitus](https://avatars.githubusercontent.com/u/732441?v=4)](https://github.com/axelitus "axelitus (66 commits)")

---

Tags

authorizationcode-drivenheimdalllaravellaravel-heimdallnorse-blueauthorizationheimdallnorse bluelaravel-heimdallcode-driven

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/norse-blue-laravel-heimdall/health.svg)

```
[![Health](https://phpackages.com/badges/norse-blue-laravel-heimdall/health.svg)](https://phpackages.com/packages/norse-blue-laravel-heimdall)
```

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.2k](/packages/league-oauth2-client)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[league/oauth2-facebook

Facebook OAuth 2.0 Client Provider for The PHP League OAuth2-Client

32013.0M66](/packages/league-oauth2-facebook)

PHPackages © 2026

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