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 today

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 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1076d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[google/auth

Google Auth Library for PHP

1.4k294.2M217](/packages/google-auth)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)

PHPackages © 2026

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