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[12 issues](https://github.com/FriendsOfFlarum/doorman/issues)MITPHPPHP ^7.4 || ^8.0CI passing

Since Nov 20Pushed 1mo 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 2.x Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (29)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 95% of packages

Maintenance62

Regular maintenance activity

Popularity30

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity77

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

Total

28

Last Release

30d ago

Major Versions

0.4.1 → 1.0.02021-05-27

1.1.5 → 2.0.0-beta.12025-03-19

1.x-dev → 2.x-dev2026-06-03

2.x-dev → 3.0.0-beta.12026-06-03

### 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 (27 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (20 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

[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1938.7k](/packages/flarum-lang-french)[fof/oauth

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

51135.4k45](/packages/fof-oauth)[maicol07/flarum-ext-sso

SSO for Flarum

468.7k](/packages/maicol07-flarum-ext-sso)[fof/doorman

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

2540.1k2](/packages/fof-doorman)[fof/terms

Ask users to accept terms of use before using the forum

1378.0k1](/packages/fof-terms)

PHPackages © 2026

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