PHPackages                             thecoati/socialite-cfx-provider - 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. thecoati/socialite-cfx-provider

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

thecoati/socialite-cfx-provider
===============================

v1.0.0(3y ago)47.1k↓49.1%2[1 issues](https://github.com/TheCoati/Cfx.re-Socialite/issues)MITPHPPHP ^8.0.2

Since Nov 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/TheCoati/Cfx.re-Socialite)[ Packagist](https://packagist.org/packages/thecoati/socialite-cfx-provider)[ GitHub Sponsors](https://github.com/sponsors/KSchreuder/)[ RSS](/packages/thecoati-socialite-cfx-provider/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Cfx.re Socialite
================

[](#cfxre-socialite)

[Cfx.re](https://forum.cfx.re/) Laravel [socialite](https://laravel.com/docs/9.x/socialite) adapter for authenticating with [FiveM](https://fivem.net) and [RedM](https://redm.net).

Table of Contents
-----------------

[](#table-of-contents)

- [Requirement](#requirements)
- [Installation](#installation)
- [Scopes](#scopes)
- [Disclaimer](#disclaimer)

Requirements
------------

[](#requirements)

- [Laravel](https://laravel.com/) 9+

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

[](#installation)

- Install dependencies `composer require thecoati/socialite-cfx-provider`.
- Generate RSA public and private key `php artisan cfx:keys`.
- Add the following lines to your `.env`:

```
CFX_APP_NAME=Laravel
CFX_CLIENT_ID=UNIQUE_CLIENT_ID
CFX_REDIRECT_URL=http://127.0.0.1:8000/callback
CFX_AVATAR_SIZE=128
```

Alternatively, you can also publish the configuration file using `php artisan vendor:publish --tag=cfx-config`.

The `CFX_APP_NAME` is the application name listed at the [apps page](https://forum.cfx.re/u/sarahwinter/preferences/apps).
Make sure to generate a \**random* and **unique** `CFX_CLIENT_ID` you can generate this key yourself.
The `CFX_AVATAR_SIZE` determines the size at which the avatar is returned. Please note that values lower than 8 and higher than 1000 will result in a blank avatar. This is because Discourse has hardcoded these limits in their avatar controller.
Unless a real OAuth flow Discourse forums do not require any way of application registration.

Scopes
------

[](#scopes)

Available Discourse user API key scopes.
[https://github.com/discourse/discourse/blob/main/app/models/user\_api\_key\_scope.rb](https://github.com/discourse/discourse/blob/main/app/models/user_api_key_scope.rb)

- `read`
- `write`
- `message_bus`
- `push`
- `one_time_password`
- `notifications`
- `session_info` \*Required
- `bookmarks_calendar`

Disclaimer
----------

[](#disclaimer)

Unfortunately Discourse (community software used on forum.cfx.re) does not provide a full OAuth2 flow.
We modified the authentication flow of Socialite to match the authentication flow of Discourse.
Therefore It might be possible that Socialite features behave differently than expected.
Also note that there is **no email scope** available to obtain the users email.

For more information on the Discourse user API authentication see:

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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

Unknown

Total

1

Last Release

1266d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03c93602cb25b8ccd346a8ee0285c93b7abe5a894b318641a5a3ffc81ed6c267?d=identicon)[TheCoati](/maintainers/TheCoati)

---

Top Contributors

[![r3ps4J](https://avatars.githubusercontent.com/u/40723838?v=4)](https://github.com/r3ps4J "r3ps4J (7 commits)")[![TheCoati](https://avatars.githubusercontent.com/u/9860488?v=4)](https://github.com/TheCoati "TheCoati (5 commits)")

---

Tags

apicfxfivemlaraveloauthredmsocialitelaraveloauthsocialitecfxfivemredmcfx.re

### Embed Badge

![Health badge](/badges/thecoati-socialite-cfx-provider/health.svg)

```
[![Health](https://phpackages.com/badges/thecoati-socialite-cfx-provider/health.svg)](https://phpackages.com/packages/thecoati-socialite-cfx-provider)
```

###  Alternatives

[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42542.0M544](/packages/socialiteproviders-manager)[martinbean/socialite-discord-provider

A Discord provider for Laravel Socialite.

2839.2k](/packages/martinbean-socialite-discord-provider)[seoda/socialite-apple

Apple OAuth2 Provider for Laravel Socialite

1128.1k](/packages/seoda-socialite-apple)[laravel-uis/socialite-ui

A Laravel Socialite UI for the new Laravel Starter Kits

114.3k1](/packages/laravel-uis-socialite-ui)

PHPackages © 2026

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