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 2d 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 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

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://www.gravatar.com/avatar/71b661cd844f486622e2daa9fe84c30c4b34fae8c3ac99cfe78a8d8165bfcb91?d=identicon)[compy](/maintainers/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

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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