PHPackages                             mathieutu/lvconnect-socialite - 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. mathieutu/lvconnect-socialite

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

mathieutu/lvconnect-socialite
=============================

LVConnect OAuth2 Provider for Laravel Socialite

v1.1.2(6y ago)01491[3 PRs](https://github.com/mathieutu/lvconnect-socialite/pulls)MITPHPPHP &gt;= 7.1

Since Nov 24Pushed 5y agoCompare

[ Source](https://github.com/mathieutu/lvconnect-socialite)[ Packagist](https://packagist.org/packages/mathieutu/lvconnect-socialite)[ Docs](https://github.com/mathieutu/lvconnect-socialite)[ RSS](/packages/mathieutu-lvconnect-socialite/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

LVConnect Socialite
===================

[](#lvconnect-socialite)

Abstract
--------

[](#abstract)

[LVConnect](https://gitlab.com/LinkValue/Lab/LVConnect/LvConnect) is a project that aims to unify login over all Linkvalue apps with an authentication service based on OAuth2.

[Linkvalue](https://link-value.fr) is a french web/mobile agency.

[Socialite](https://github.com/laravel/socialite) is a simple and convenient way to authenticate users with OAuth providers for Laravel.

**This package is an internal tool. You can download it and use it as an example for making your own, but it will be unusable if you're not a Linkvalue partner.**

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

[](#installation)

This assumes that you have composer installed globally

```
composer require mathieutu/lvconnect-socialite
```

Configuration setup
-------------------

[](#configuration-setup)

You will need to add an entry to the services configuration file so that after config files are cached for usage in production environment (Laravel command `artisan config:cache`) all config is still available.

#### Add to `config/services.php`.

[](#add-to-configservicesphp)

```
 'lvconnect' => [
    'client_id' => env('LVCONNECT_ID'),
    'client_secret' => env('LVCONNECT_SECRET'),
    'redirect' => env('LVCONNECT_CALLBACK'),
],
```

If you want to do some test with another url that production one, you can optionally add an url key with the base url:

```
    'url' => 'https://lvconnect-staging.herokuapp.com',
```

#### Fill your `.env` / environment variables:

[](#fill-your-env--environment-variables)

[Create your application](https://lvconnect.link-value.fr/dashboard/apps/new) in the LVConnect website and fill the information in your env:

```
LVCONNECT_ID=XXXX
LVCONNECT_SECRET=XXXX
LVCONNECT_CALLBACK=http://my-full-website-url.localhost/login/callback
```

Usage
-----

[](#usage)

See [Laravel docs](https://laravel.com/docs/master/socialite) on socialite usage.

- You should now be able to use it like you would regularly use Socialite.

```
return $socialite->driver('lvconnect')->redirect();
```

**You can publish all the [auth scaffolding](https://github.com/mathieutu/lvconnect-socialite/tree/master/src/stubs) with the following command:**

```
php artisan lvconnect:publish
```

### Stateless

[](#stateless)

You can set whether or not you want to use the provider as stateless. LVConnect supports whatever option you choose.

**Note:** If you are using this with Lumen, all providers will automatically be stateless since **Lumen** does not keep track of state.

```
// to turn off stateless
return Socialite::with('lvconnect')->stateless(false)->redirect();

// to use stateless
return Socialite::with('lvconnect')->stateless()->redirect();
```

### The LVConnect User.

[](#the-lvconnect-user)

The user that socialite will provide has this shape:

```
User {#341 ▼
  +accessTokenResponseBody: array:6 [▼
    "access_token" => "0bc47e47-1e88-4d08-a402-1cd7c235de3d"
    "token_type" => "bearer"
    "expires_in" => 172800
    "refresh_token" => "73a17012-b999-4300-8d4d-99e8675abc08"
    "scope" => array:3 [▼
      0 => "users:get"
      1 => "users:modify"
      2 => "profile:get"
    ]
    "need_password_change" => false
  ]
  +token: "0bc47e47-1e88-4d08-a402-1cd7c235de3d"
  +refreshToken: "73a17012-b999-4300-8d4d-99e8675abc08"
  +expiresIn: 172800
  +id: "589ae9cfe2eb1d0009790659"
  +nickname: null
  +name: "Foo BAR"
  +email: "foo.bar@link-value.fr"
  +avatar: "https://www.gravatar.com/avatar/d5763d35fe855464633ff3ec5064ecad?s=200"
  +user: array:10 [▼
    "tags" => []
    "roles" => array:5 [▼
      0 => "tech"
      1 => "business"
      2 => "hr"
      3 => "board"
      4 => "com"
    ]
    "firstName" => "Foo"
    "lastName" => "BAR"
    "email" => "foo.bar@link-value.fr"
    "createdAt" => "2017-02-08T09:50:07.813Z"
    "city" => "Lyon"
    "description" => "A really good friend!"
    "profilePictureUrl" => "https://www.gravatar.com/avatar/d5763d35fe855464633ff3ec5064ecad?s=200"
    "id" => "589ae9cfe2eb1d0009790659"
  ]
}

```

It's a instance of \\Laravel\\Socialite\\Two\\User class.

#### Reference

[](#reference)

- [Laravel Socialite Docs](https://laravel.com/docs/master/socialite)
- [Laracasts Socialite video](https://laracasts.com/series/whats-new-in-laravel-5/episodes/9)

License
-------

[](#license)

This LVConnect Socialite package is an open-sourced software licensed under the MIT license.

Contributing
------------

[](#contributing)

Issues and PRs are obviously welcomed and encouraged, for features as well as documentation.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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 ~207 days

Total

5

Last Release

2257d ago

Major Versions

v0.0.1 → v1.0.02019-01-10

PHP version history (2 changes)v0.0.1PHP &gt;= 7.0

v1.0.0PHP &gt;= 7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7171115fe04898f7ebdc6d09f7f20a0713849c783d367a67af8495aa37bd1d31?d=identicon)[mathieutu](/maintainers/mathieutu)

---

Top Contributors

[![mathieutu](https://avatars.githubusercontent.com/u/11351322?v=4)](https://github.com/mathieutu "mathieutu (12 commits)")

### Embed Badge

![Health badge](/badges/mathieutu-lvconnect-socialite/health.svg)

```
[![Health](https://phpackages.com/badges/mathieutu-lvconnect-socialite/health.svg)](https://phpackages.com/packages/mathieutu-lvconnect-socialite)
```

###  Alternatives

[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

421.9M5](/packages/socialiteproviders-instagram)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)[kovah/laravel-socialite-oidc

OpenID Connect OAuth2 Provider for Laravel Socialite

2073.7k](/packages/kovah-laravel-socialite-oidc)

PHPackages © 2026

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