PHPackages                             magium/mcm-auth0-factory - 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. magium/mcm-auth0-factory

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

magium/mcm-auth0-factory
========================

This library provides a configured instance of the Auth0 PHP adapter using the Magium Configuration Manager

1.1.1(8y ago)053Apache-2.0PHP

Since Sep 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/magium/mcm-auth0-factory)[ Packagist](https://packagist.org/packages/magium/mcm-auth0-factory)[ RSS](/packages/magium-mcm-auth0-factory/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Auth0 Factory for the Magium Configuration Manager
==================================================

[](#auth0-factory-for-the-magium-configuration-manager)

This library provides an interface for the auth0/auth0-php library so you can use it with the [Magium Configuration Manager](https://magiumlib.com/components/configuration). Often applications will have some kind of static configuration mechanism, such as XML files, JSON files, YAML files, or PHP files. There's nothing necessarily wrong with that, but what it does is merge your deployment and configuration concerns. The Magium Configuration Manager (MCM) breaks that dependency so you can manage configuration separately from your deployment.

Setup
-----

[](#setup)

```
composer require magium/mcm-auth0-factory

```

Once it is installed you need to initialize the Magium Configuration Manager (MCM) for your project using the `magium-configuration` commnand. You can find it in `vendor/bin/magium-configuration` or, if that doesn't work you can run `php vendor/magium/configuration-manager/bin/magium-configuration`. For the purpose of this documentation we will simple call it `magium-configuration`.

Configuration
-------------

[](#configuration)

First, list all the configuration keys so you can see what they are.

```
$ magium-configuration magium:configuration:list-keys
Valid configuration keys
authentication/auth0/enabled

authentication/auth0/domain

authentication/auth0/client_id

authentication/auth0/client_secret

authentication/auth0/redirect_uri

authentication/auth0/audience

authentication/auth0/persist_id_token (default: 1)

authentication/auth0/persist_access_token (default: 1)

authentication/auth0/persist_refresh_token (default: 1)

```

Then you need to set the settings:

```
$ magium-configuration set authentication/auth0/domain test-domain
Set authentication/auth0/domain to test-domain (context: default)
Don't forget to rebuild your configuration cache with magium:configuration:build

... and so on

```

Then you need to build the configuration:

```
$ magium-configuration build
Building context: default
Building context: production
Building context: development

```

Usage
-----

[](#usage)

Next up, in your application code run something like this:

```
$factory = new \Magium\Configuration\MagiumConfigurationFactory();
$auth0Factory = new \Magium\Auth0Factory\Auth0Factory($factory->getConfiguration());

$auth0 = $auth0Factory->factory();

$user = $auth0->getUser();

```

You can try this in the [sample test script](test/test.php).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~27 days

Total

4

Last Release

3130d ago

Major Versions

0.9 → 1.02017-09-14

### Community

Maintainers

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

---

Top Contributors

[![kschroeder](https://avatars.githubusercontent.com/u/237332?v=4)](https://github.com/kschroeder "kschroeder (6 commits)")

### Embed Badge

![Health badge](/badges/magium-mcm-auth0-factory/health.svg)

```
[![Health](https://phpackages.com/badges/magium-mcm-auth0-factory/health.svg)](https://phpackages.com/packages/magium-mcm-auth0-factory)
```

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.2M3](/packages/auth0-login)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128790.7k](/packages/auth0-symfony)[auth0/wordpress

WordPress Plugin for Auth0

18122.7k](/packages/auth0-wordpress)

PHPackages © 2026

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