PHPackages                             pirabyte/lexwareoffice-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. pirabyte/lexwareoffice-socialite

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

pirabyte/lexwareoffice-socialite
================================

Lexware Office OAuth2 Provider for Laravel Socialite

v0.0.4(6mo ago)02.1k↓50%MITPHPPHP ^8.2

Since Feb 6Pushed 6mo agoCompare

[ Source](https://github.com/pirabyte/lexwareoffice-socialite)[ Packagist](https://packagist.org/packages/pirabyte/lexwareoffice-socialite)[ RSS](/packages/pirabyte-lexwareoffice-socialite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Setup
=====

[](#setup)

```
composer require pirabyte/lexwareoffice-socialite
```

Add the following to your `services.php`,

```
'lexwareoffice' => [
    'url' => env('LEXWARE_OFFICE_URL', 'https://lexoffice-sandbox.grld.eu'),
    'api' => env('LEXWARE_OFFICE_API', 'https://api-sandbox.grld.eu'),
    'client_id' => env('LEXWARE_OFFICE_CLIENT_ID'),
    'client_secret' => env('LEXWARE_OFFICE_CLIENT_SECRET'),
    'redirect' => env('LEXWARE_OFFICE_REDIRECT_URL'),
],
```

In `app/Providers/AppServiceProvider.php` add the following listener to the `SocialiteWasCalled` event:

```
Event::listen(function (SocialiteWasCalled $event) {
    $event->extendSocialite('lexwareoffice', \Pirabyte\Socialite\LexwareOffice\Provider::class);
});
```

> For Laravel &lt; 11, add it to your `EventServiceProvider.php`.

Make sure you have the corresponding `.env` keys present:

- `LEXWARE_OFFICE_URL`
- `LEXWARE_OFFICE_API`
- `LEXWARE_OFFICE_CLIENT_ID`
- `LEXWARE_OFFICE_CLIENT_SECRET`
- `LEXWARE_OFFICE_REDIRECT_URL`

How to use
==========

[](#how-to-use)

In your controller create a new method

```
public function redirect()
{
    return Socialite::driver('lexwareoffice')->redirect();
}
```

This will redirect to lexware office to start the OAuth2.0 Flow.

Add another method to catch the response

```
public function callback(): \Illuminate\Http\RedirectResponse
{
    $connection = Socialite::driver('lexwareoffice')->user();
    $user = request()->user();

    LexwareOfficeClient::updateOrCreate([
        'user_id' => $user->id,
    ], [
        'access_token' => $connection->token,
        'refresh_token' => $connection->refreshToken,
        'expires_at' => Carbon::now()->addSeconds($connection->expiresIn),
    ]);

    return redirect()->route('dashboard');
}
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance66

Regular maintenance activity

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

4

Last Release

200d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167996285?v=4)[pirabyte](/maintainers/pirabyte)[@pirabyte](https://github.com/pirabyte)

---

Top Contributors

[![felix-exon](https://avatars.githubusercontent.com/u/24978665?v=4)](https://github.com/felix-exon "felix-exon (6 commits)")

### Embed Badge

![Health badge](/badges/pirabyte-lexwareoffice-socialite/health.svg)

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

###  Alternatives

[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

618.4M8](/packages/socialiteproviders-apple)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

421.9M5](/packages/socialiteproviders-instagram)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

556.0M19](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

621.3M7](/packages/socialiteproviders-laravelpassport)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

422.0M17](/packages/socialiteproviders-discord)

PHPackages © 2026

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