PHPackages                             compy/laravel-elastos-auth - 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. compy/laravel-elastos-auth

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

compy/laravel-elastos-auth
==========================

Elastos based 2FA for Laravel

117PHP

Since Aug 7Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Compy/laravel-elastos-auth)[ Packagist](https://packagist.org/packages/compy/laravel-elastos-auth)[ RSS](/packages/compy-laravel-elastos-auth/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-elastos-auth
====================

[](#laravel-elastos-auth)

This package adds Elastos based DID blockchain authentication to your Laravel project.

Installation
------------

[](#installation)

`composer require compy/laravel-elastos-auth`

Then install the autopublish assets:

`php artisan vendor:publish --provider="Compy\LaravelElastosAuth\DIDAuthServiceProvider"`

You need to generate an application ID, encryption keys and a DID by using the Elastos Developer [App DID Wizard](https://elastos.academy/did-wizard)

Your .env file should have the following configuration:

```
ELA_MNEMONIC=""
ELA_PRIVATE_KEY=
ELA_PUBLIC_KEY=
ELA_ADDRESS=
ELA_DID=
ELA_APP_NAME=
ELA_APP_ID=
ELA_CALLBACK="${APP_URL}/elastos/did/callback"

```

It is advised that you leave the callback URL the same as all routes are prefixed with `/elastos`

Run the migrations with

`php artisan migrate`

This will add a `did` column to your users table. You should make the did attribute fillable within your User model.

Routes
------

[](#routes)

The following routes are added by this package:

- `/elastos/auth` - Main authentication route where you should direct your users to login via Elastos if desired.
- `/elastos/register` - Main registration page where you should direct your users to register via Elastos if desired.

License
-------

[](#license)

MIT

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/93693?v=4)[Jimmy Lipham](/maintainers/compy)[@Compy](https://github.com/Compy)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/compy-laravel-elastos-auth/health.svg)

```
[![Health](https://phpackages.com/badges/compy-laravel-elastos-auth/health.svg)](https://phpackages.com/packages/compy-laravel-elastos-auth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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