PHPackages                             frankie813/laravel-discord-roles - 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. frankie813/laravel-discord-roles

ActiveLaravel-plugin

frankie813/laravel-discord-roles
================================

A Laravel package for attaching and detaching Discord roles.

0.0.2(3y ago)0306↓50%MITPHP

Since Apr 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Frankie813/laravel-discord-roles)[ Packagist](https://packagist.org/packages/frankie813/laravel-discord-roles)[ RSS](/packages/frankie813-laravel-discord-roles/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Laravel Discord Roles
=====================

[](#laravel-discord-roles)

A Laravel package for easily attaching and detaching Discord roles.

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

[](#installation)

You can install the package via composer:

```
composer require frankie813/laravel-discord-roles
```

Configuration
-------------

[](#configuration)

Publish the configuration file (optional):

```
php artisan vendor:publish --provider="Frankie813\LaravelDiscordRoles\LaravelDiscordRolesServiceProvider"
```

Add your Discord bot token to your .env file:

```
DISCORD_BOT_TOKEN=your_bot_token_here
```

Usage
-----

[](#usage)

Use the package in your Laravel application by importing the main class:

```
use Frankie813\LaravelDiscordRoles\LaravelDiscordRoles;

$discordRoles = new LaravelDiscordRoles(env('DISCORD_BOT_TOKEN'));

$guildId = 'guild_id';
$userId = 'user_id';
$roleId = 'role_id';

// Attach a role
$result = $discordRoles->attachRole($guildId, $userId, $roleId);

// Detach a role
$result = $discordRoles->detachRole($guildId, $userId, $roleId);
```

Or, if you prefer using the facade:

```
use Frankie813\LaravelDiscordRoles\Facades\LaravelDiscordRoles;

$guildId = 'guild_id';
$userId = 'user_id';
$roleId = 'role_id';

// Attach a role
$result = LaravelDiscordRoles::attachRole($guildId, $userId, $roleId);

// Detach a role
$result = LaravelDiscordRoles::detachRole($guildId, $userId, $roleId);
```

License
-------

[](#license)

This package is open-source software licensed under the MIT license.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e28cdc3d62896e132637300da821ca284f02fe9e15a3dbaf30a317cf44200b26?d=identicon)[Frankie813](/maintainers/Frankie813)

---

Top Contributors

[![Frankie813](https://avatars.githubusercontent.com/u/103602426?v=4)](https://github.com/Frankie813 "Frankie813 (6 commits)")

### Embed Badge

![Health badge](/badges/frankie813-laravel-discord-roles/health.svg)

```
[![Health](https://phpackages.com/badges/frankie813-laravel-discord-roles/health.svg)](https://phpackages.com/packages/frankie813-laravel-discord-roles)
```

PHPackages © 2026

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