PHPackages                             ezralazuardy/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. [HTTP &amp; Networking](/categories/http)
4. /
5. ezralazuardy/heimdall

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ezralazuardy/heimdall
=====================

Painless OAuth 2.0 Server for CodeIgniter 4

v0.0.5(2y ago)454.2k11[4 issues](https://github.com/ezralazuardy/heimdall/issues)[2 PRs](https://github.com/ezralazuardy/heimdall/pulls)MITPHPPHP &gt;=8.1CI passing

Since Aug 25Pushed 1y ago6 watchersCompare

[ Source](https://github.com/ezralazuardy/heimdall)[ Packagist](https://packagist.org/packages/ezralazuardy/heimdall)[ Docs](https://github.com/ezralazuardy/heimdall)[ Fund](https://ko-fi.com/ezralazuardy)[ Patreon](https://www.patreon.com/ezralazuardy)[ RSS](/packages/ezralazuardy-heimdall/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (4)Versions (9)Used By (0)

 [![Build](https://github.com/ezralazuardy/heimdall/actions/workflows/build.yml/badge.svg)](https://github.com/ezralazuardy/heimdall/actions/workflows/build.yml/badge.svg) [![Codacy Security Scan](https://github.com/ezralazuardy/heimdall/actions/workflows/codacy-analysis.yml/badge.svg)](https://github.com/ezralazuardy/heimdall/actions/workflows/codacy-analysis.yml/badge.svg) [![Releases](https://camo.githubusercontent.com/c597683d6538ddd89feb3c46173f469e62b6bcf7a9ae2569bb30957d011975ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f657a72616c617a75617264792f6865696d64616c6c)](https://camo.githubusercontent.com/c597683d6538ddd89feb3c46173f469e62b6bcf7a9ae2569bb30957d011975ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f657a72616c617a75617264792f6865696d64616c6c) [![Minimum PHP version](https://camo.githubusercontent.com/ceb284855ff70a5d5e33622371763ca084b840f025069d697c671263c3dcd41e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f657a72616c617a75617264792f6865696d64616c6c)](https://camo.githubusercontent.com/ceb284855ff70a5d5e33622371763ca084b840f025069d697c671263c3dcd41e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f657a72616c617a75617264792f6865696d64616c6c) [![Issues](https://camo.githubusercontent.com/12c6094c643a9211b1327b5bffe2ee8e538d612c92088f469bc0594513ae67b8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f657a72616c617a75617264792f6865696d64616c6c3f636f6c6f723d726564)](https://camo.githubusercontent.com/12c6094c643a9211b1327b5bffe2ee8e538d612c92088f469bc0594513ae67b8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f657a72616c617a75617264792f6865696d64616c6c3f636f6c6f723d726564) [![Code Quality](https://camo.githubusercontent.com/1ce186bdf2f3e992a29fecd7c87a99c1af970db2bcde8e5c7aa85102083f1fa1/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f6666333064316531636334393462316361303334363263643930663265316631)](https://camo.githubusercontent.com/1ce186bdf2f3e992a29fecd7c87a99c1af970db2bcde8e5c7aa85102083f1fa1/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f6666333064316531636334393462316361303334363263643930663265316631) [![Maintainability](https://camo.githubusercontent.com/dec10f508deb99c16b2db96fe99a5fa12431dfe08335018983e61e087fece86b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f657a72616c617a75617264792f6865696d64616c6c)](https://camo.githubusercontent.com/dec10f508deb99c16b2db96fe99a5fa12431dfe08335018983e61e087fece86b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f657a72616c617a75617264792f6865696d64616c6c)

🤺 heimdall
----------

[](#-heimdall)

Inspired from the Norse mythology, [Heimdallr](https://en.wikipedia.org/wiki/Heimdallr), modernly anglicized as Heimdall is the gatekeeper of Bifröst, the rainbow road connecting Midgard, realm of the humans, to Asgard, the realm of Gods.

In **CodeIgniter 4**, Heimdall serves as the gatekeeper between the client and resource server. Heimdall gives you an out of the box OAuth 2 authorization protocol implementation to your CodeIgniter's Web Service. Heimdall also comes with some handy extensions such as [Open ID Connect](https://heimdall.ezralazuardy.com/documentation/oidc) support to gives you a simple identity layer on top of the OAuth 2 protocol and a [Proof Key for Code Exchange](https://heimdall.ezralazuardy.com/documentation/pkce) support.

Heimdall implements the standards compliant implementation of an [OAuth 2](https://tools.ietf.org/html/rfc6749) authorization server written in PHP which makes working with OAuth 2 trivial. You can easily configure an OAuth 2 server to protect your API with access tokens, or allow clients to request new access tokens and refresh them.

This library was created in order to simplify the need of OAuth 2 implementation in your CodeIgniter 4 framework, based on the [OAuth 2.0 Server](https://github.com/thephpleague/oauth2-server) library by [thephpleague](https://thephpleague.com/).

#### Latest version

[](#latest-version)

See the latest version of Heimdall [here](https://github.com/ezralazuardy/heimdall/releases).

✍️ Installation
---------------

[](#️-installation)

In order to install Heimdall, you have to use [Composer](https://getcomposer.org/).

In the root directory of your CodeIgniter 4 project, fire up a terminal and run:

```
composer require ezralazuardy/heimdall
```

Heimdall is now ready to be configured and run in your server.

🚀️ Getting Started
------------------

[](#️-getting-started)

In order to start configuring &amp; implementing Heimdall in your CodeIgniter 4 project, please refer to the [documentation](https://heimdall.lazuardy.tech).

📖️ Documentation
----------------

[](#️-documentation)

Read the Heimdall documentation on .

👷️ Contributing
---------------

[](#️-contributing)

All contributions are welcomed. Please make a [pull request](https://github.com/ezralazuardy/heimdall/pulls) so that I can review your changes.

Before start making contributions to Heimdall, please read the [contribution guidelines](https://github.com/ezralazuardy/heimdall/blob/master/CONTRIBUTING.md) and [code of conduct](https://github.com/ezralazuardy/heimdall/blob/master/CODE_OF_CONDUCT.md).

🛡️ Security Policy
------------------

[](#️-security-policy)

Read the current Heimdall's security policy [here](https://github.com/ezralazuardy/heimdall/security/policy).

🗒️ Side Note
------------

[](#️-side-note)

Heimdall is at it's early stage. If you experiencing an error or bug, please report by creating a new [issues](https://github.com/ezralazuardy/heimdall/issues).

📜 License
---------

[](#-license)

[![](https://camo.githubusercontent.com/13f11112fb214caf8b23b51a667ae2d724b96aee4a2402db35aa679fe1d792c8/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246657a72616c617a75617264792532466865696d64616c6c2e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2Fezralazuardy%2Fheimdall?ref=badge_large)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.2% 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 ~342 days

Total

5

Last Release

769d ago

PHP version history (2 changes)v0.0.1PHP &gt;=7.2

v0.0.5PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24422019?v=4)[Ezra Wijaya](/maintainers/ezralazuardy)[@ezralazuardy](https://github.com/ezralazuardy)

---

Top Contributors

[![0xc002001](https://avatars.githubusercontent.com/u/281332179?v=4)](https://github.com/0xc002001 "0xc002001 (79 commits)")[![ezralazuardy](https://avatars.githubusercontent.com/u/24422019?v=4)](https://github.com/ezralazuardy "ezralazuardy (11 commits)")[![gitHusband](https://avatars.githubusercontent.com/u/23734057?v=4)](https://github.com/gitHusband "gitHusband (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![kaivanriz](https://avatars.githubusercontent.com/u/12326278?v=4)](https://github.com/kaivanriz "kaivanriz (1 commits)")[![klAvAx](https://avatars.githubusercontent.com/u/600550?v=4)](https://github.com/klAvAx "klAvAx (1 commits)")

---

Tags

codeigniter4composerheimdalloauth2-serverrestfulapirestauthAuthenticationservercodeigniteroauthoauth2authorizationoauth 2.0secureresourceprotectoauth 2REST APIciCI4CodeIgniter 4heimdallcodeginiter4codeigniter oauth

### Embed Badge

![Health badge](/badges/ezralazuardy-heimdall/health.svg)

```
[![Health](https://phpackages.com/badges/ezralazuardy-heimdall/health.svg)](https://phpackages.com/packages/ezralazuardy-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.7k147.0M290](/packages/league-oauth2-server)[chervand/yii2-oauth2-server

OAuth 2.0 server for Yii 2.0 with MAC tokens support.

1524.7k1](/packages/chervand-yii2-oauth2-server)

PHPackages © 2026

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