PHPackages                             hashandsalt/kirby3-auth0 - 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. hashandsalt/kirby3-auth0

ActiveKirby-plugin[Authentication &amp; Authorization](/categories/authentication)

hashandsalt/kirby3-auth0
========================

Auth0 support for Kirby 3+

v1.0.0(2y ago)44MITPHP

Since Jul 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/HashandSalt/kirby3-auth0)[ Packagist](https://packagist.org/packages/hashandsalt/kirby3-auth0)[ RSS](/packages/hashandsalt-kirby3-auth0/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Kirby Auth0
===========

[](#kirby-auth0)

A plugin for K3+ to allow for decentralised front-end logins via Auth0.

Install
-------

[](#install)

#### Manual

[](#manual)

Copy the plugins folder to `site\plugins`

#### Composer

[](#composer)

```
composer require hashandsalt/kirby3-auth0

```

Setup
-----

[](#setup)

The plugin uses `.env` to protect the auth0 credentials. You will need to create a `.env` file in the root of the public folder with the following (replace XXX with your own details):

```
# Your Auth0 application's Client ID
AUTH0_CLIENT_ID=XXX

# The URL of your Auth0 tenant domain
AUTH0_DOMAIN=XXX

# Your Auth0 application's Client Secret
AUTH0_CLIENT_SECRET=XXX

# A long, secret value used to encrypt the session cookie.
# This can be generated using `openssl rand -hex 32` from your shell.
AUTH0_COOKIE_SECRET=XXX

```

You should exclude this file from Git.

Usage
-----

[](#usage)

Once you have a properly configured app set up in the Auth0 dashboard, you can go ahead and work with the users. In a controller (recomended) or template, we can check if a user is logged in and get the profile of the user:

```
$auth0 = site()->auth0();
$session = $auth0->getCredentials();
$user = $session === null ? null : $session->user;
```

Now we can use that info to make a login / logout switch. A very basic example:

```
if (is_null($user)) {
  echo 'You are not logged in';
  echo 'Please log in.';
} else {
  $name = $user['given_name'] ?? $user['nickname'] ?? $user['email'] ?? 'Unknown';
  echo 'Welcome '  . $name . '!';
  echo 'log out.';
}
```

There is more information in the profile, such as the users Gravatar image. View the rest with `dump($user)`.

Options
-------

[](#options)

Change the base uri and the location of the `.env` file:

```
'hashandsalt.auth0.baseUri' => 'https://localhost:3000/', // set to your live domain name on the public server
'hashandsalt.auth0.env' => './',
```

### Contributers

[](#contributers)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1024d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d18b7200637c15341417dfabb7c51c7ec3fda44f6a24cb4780b5e7c14f309118?d=identicon)[hashandsalt](/maintainers/hashandsalt)

---

Top Contributors

[![HashandSalt](https://avatars.githubusercontent.com/u/28439755?v=4)](https://github.com/HashandSalt "HashandSalt (1 commits)")

### Embed Badge

![Health badge](/badges/hashandsalt-kirby3-auth0/health.svg)

```
[![Health](https://phpackages.com/badges/hashandsalt-kirby3-auth0/health.svg)](https://phpackages.com/packages/hashandsalt-kirby3-auth0)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[heptacom/shopware-platform-admin-open-auth

Shopware plugin to allow OAuth providers to provide admin logins

35133.7k](/packages/heptacom-shopware-platform-admin-open-auth)[descope/descope-php

Descope SDK for PHP

3814.0k](/packages/descope-descope-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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