PHPackages                             webspero/proton-auth-context - 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. webspero/proton-auth-context

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

webspero/proton-auth-context
============================

proton auth service for laravel

04PHP

Since Jun 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kapil-webspero/laravel-auth-context)[ Packagist](https://packagist.org/packages/webspero/proton-auth-context)[ RSS](/packages/webspero-proton-auth-context/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Proton Auth Context Package
===========================

[](#proton-auth-context-package)

This is a Laravel package that provides authentication context functionality using Proton. It allows you to easily integrate Proton login functionality into your Laravel application.

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

[](#installation)

1. Run the following command to install the package:

    ```
    composer require home-bloks/proton-auth-context:dev-main
    ```
2. Run the Proton authentication command:

    ```
    php artisan proton:auth
    ```
3. Install the required npm packages:

    ```
    npm install
    ```
4. Compile the assets:

    ```
    npm run dev
    ```

Configuration for VITE
----------------------

[](#configuration-for-vite)

1. Update your `vite.config.js` file by adding the following code:

    ```
    import { defineConfig } from 'vite';
    import laravel from 'laravel-vite-plugin';
    import react from "@vitejs/plugin-react";

    export default defineConfig({
        plugins: [
            laravel({
                input: ['resources/css/app.css', 'resources/js/app.js'],
                refresh: true,
            }),
            react(),
        ],
    });
    ```
2. Update your root JavaScript (entry point for react) file (e.g., `App.jsx`, `app.jsx`, `Main.jsx`) with the following code:

    ```
    import ReactDOM from "react-dom/client";
    import ProtonLoginButton from "./components/ProtonLoginButton";
    import { AuthContextProvider } from "./store/auth.context.jsx";

    ReactDOM.createRoot(document.getElementById("root")).render(

    );
    ```
3. Add the following code to your root template header before closing the `` tag (welcome.blade.php by default):

    ```
    @viteReactRefresh
    @vite(['resources/js/app.jsx'])
    ```

    Note: Make sure the `@vite('resources/js/app.jsx')` file matches the root JavaScript file you updated.
4. Place the following code where you want to add the `ProtonLoginButton` component:

    ```

    ```

    You can change the `id` attribute according to your setup in the root JavaScript file.
5. update your .env with following varibales:

```
   VITE_MAINNET_ACCOUNT=account_name
   VITE_MAINNET_CHAIN_NETWORK_ENDPOINTS=https://protontestnet.greymass.com
   VITE_MAINNET_CHAIN_ID=71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd

```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

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/2df83accfeaaa79dd4370c407bce67ec370580930b9767ca3b620915cdd988e8?d=identicon)[webspero](/maintainers/webspero)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/webspero-proton-auth-context/health.svg)

```
[![Health](https://phpackages.com/badges/webspero-proton-auth-context/health.svg)](https://phpackages.com/packages/webspero-proton-auth-context)
```

###  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.2M117](/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)
