PHPackages                             reflar/doorman - 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. reflar/doorman

Abandoned → [fof/doorman](/?search=fof%2Fdoorman)Flarum-extension[Authentication &amp; Authorization](/categories/authentication)

reflar/doorman
==============

Create invite codes for users to sign up and be assigned to a group

2.0.0(1y ago)254.1k16[11 issues](https://github.com/FriendsOfFlarum/doorman/issues)MITPHPPHP ^7.4 || ^8.0CI passing

Since Nov 20Pushed 4w ago3 watchersCompare

[ Source](https://github.com/FriendsOfFlarum/doorman)[ Packagist](https://packagist.org/packages/reflar/doorman)[ Docs](https://friendsofflarum.org)[ Fund](https://opencollective.com/fof/donate)[ RSS](/packages/reflar-doorman/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (26)Used By (0)

Doorman by FriendsOfFlarum
==========================

[](#doorman-by-friendsofflarum)

[![GitLab license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/FriendsOfFlarum/doorman/blob/master/LICENSE.md) [![Latest Stable Version](https://camo.githubusercontent.com/6b07742da0850da4808707473b10066ea248ff6d1ddb10d79f8a9ed304b1360e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f662f646f6f726d616e2e737667)](https://github.com/FriendsOfFlarum/doorman) [![OpenCollective](https://camo.githubusercontent.com/1903c197bb0307e60d6328653532b8a6b9890b898fbc92e314ab39d699491e74/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e636f6c6c6563746976652d666f662d626c75652e737667)](https://opencollective.com/fof/donate)

A [Flarum](http://flarum.org) extension that restricts sign-ups to user's who have a code created in the admin panel.

Each code can be set to have a maximum number of uses, what group the user should be automatically added to on sign up, and whether or not the user should be automatically activated.

### Usage

[](#usage)

- Setup sign-up codes on the admin panel
- Includes optional support for [Direct Links](https://github.com/FriendsOfFlarum/direct-links). When this extension is also enabled, email invites will include a link which will take the uew user directly to the signup modal, rather than the forum home page.

### OAuth Bypass

[](#oauth-bypass)

Important: this feature requires `1.7.1` or higher of `fof/oauth`.

Doorman can be configured to allow users registering through specific OAuth providers to bypass the doorkey requirement. This is useful for allowing trusted authentication methods (like corporate SSO) to skip the invitation code step.

To enable this feature in your extension:

```
use FoF\Doorman\Extend\BypassDoorkey;

// In your extend.php file
return [
    // ... other extenders

    (new BypassDoorkey())
        ->forProvider('github')    // Allow GitHub OAuth users to bypass doorkey
        ->forProvider('discord'),  // Allow Discord OAuth users to bypass doorkey
];
```

### Installation

[](#installation)

Install with composer:

```
composer require fof/doorman:"*"
```

Then login and enable the extension.

### To Do

[](#to-do)

- Allow already signed up users to create codes for others to use (referrals)

### Issues

[](#issues)

- [Open an issue on Github](https://github.com/FriendsOfFlarum/doorman/issues)

### Links

[](#links)

- [On Github](https://github.com/FriendsOfFlarum/doorman)
- [On Packagist](https://packagist.org/packages/fof/doorman)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance65

Regular maintenance activity

Popularity29

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~132 days

Total

25

Last Release

391d ago

Major Versions

0.4.1 → 1.0.02021-05-27

1.1.5 → 2.0.0-beta.12025-03-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/887d749e38ce714da8ef0063fa39a5ceb5085cd4fdb1f4bf4bbda28b116ab025?d=identicon)[CDK2020](/maintainers/CDK2020)

---

Top Contributors

[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (18 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (15 commits)")[![KyrneDev](https://avatars.githubusercontent.com/u/13856015?v=4)](https://github.com/KyrneDev "KyrneDev (12 commits)")[![DavideIadeluca](https://avatars.githubusercontent.com/u/146922689?v=4)](https://github.com/DavideIadeluca "DavideIadeluca (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![dsevillamartin](https://avatars.githubusercontent.com/u/6401250?v=4)](https://github.com/dsevillamartin "dsevillamartin (7 commits)")[![karaok491](https://avatars.githubusercontent.com/u/72854852?v=4)](https://github.com/karaok491 "karaok491 (5 commits)")[![iPurpl3x](https://avatars.githubusercontent.com/u/18526076?v=4)](https://github.com/iPurpl3x "iPurpl3x (2 commits)")[![PepaR](https://avatars.githubusercontent.com/u/25554468?v=4)](https://github.com/PepaR "PepaR (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")[![ahneale](https://avatars.githubusercontent.com/u/82777010?v=4)](https://github.com/ahneale "ahneale (1 commits)")[![tolgaaaltas](https://avatars.githubusercontent.com/u/10291048?v=4)](https://github.com/tolgaaaltas "tolgaaaltas (1 commits)")[![ahrasis](https://avatars.githubusercontent.com/u/2795588?v=4)](https://github.com/ahrasis "ahrasis (1 commits)")[![franga2000](https://avatars.githubusercontent.com/u/3891092?v=4)](https://github.com/franga2000 "franga2000 (1 commits)")[![hasan-ozbey](https://avatars.githubusercontent.com/u/48382593?v=4)](https://github.com/hasan-ozbey "hasan-ozbey (1 commits)")[![huoxin233](https://avatars.githubusercontent.com/u/23447157?v=4)](https://github.com/huoxin233 "huoxin233 (1 commits)")[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (1 commits)")[![manaszon](https://avatars.githubusercontent.com/u/26012925?v=4)](https://github.com/manaszon "manaszon (1 commits)")[![nxta](https://avatars.githubusercontent.com/u/5470282?v=4)](https://github.com/nxta "nxta (1 commits)")

---

Tags

flarum

### Embed Badge

![Health badge](/badges/reflar-doorman/health.svg)

```
[![Health](https://phpackages.com/badges/reflar-doorman/health.svg)](https://phpackages.com/packages/reflar-doorman)
```

###  Alternatives

[fof/oauth

Allow users to log in with GitHub, Facebook, Google, Discord, GitLab, LinkedIn, and more!

50118.7k41](/packages/fof-oauth)[fof/doorman

Create invite codes for users to sign up and be assigned to a group

2537.2k2](/packages/fof-doorman)[maicol07/flarum-ext-sso

SSO for Flarum

468.3k](/packages/maicol07-flarum-ext-sso)[fof/terms

Ask users to accept terms of use before using the forum

1367.8k1](/packages/fof-terms)[fof/passport

The OAuth2 (and Laravel passport) compatible oauth extension

3013.3k](/packages/fof-passport)[foskym/flarum-oauth-center

Allow user to authorize the third clients

221.4k](/packages/foskym-flarum-oauth-center)

PHPackages © 2026

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