Download the PHP package kayckmatias/discord-socialite-provider without Composer

On this page you can find all versions of the php package kayckmatias/discord-socialite-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package discord-socialite-provider

Discord Socialite Provider for Laravel

Packagist License

A Discord OAuth2 provider for the Laravel Socialite package. This package allows you to easily integrate Discord login with Laravel applications using Socialite with extra features for Discord OAuth2.

Installation

  1. Install the package via Composer:

  2. Add the service provider to the config/app.php (only if you're using Laravel version <5.5 or not using package auto-discovery):

  3. Add your Discord credentials to the config/services.php file:

Configuration

You need to register your application with Discord to obtain the credentials required for OAuth2. You can register a new application at the Discord Developer Portal.

Once you have your credentials, add the following environment variables to your .env file:

Usage

Once the package is installed and configured, you can use Discord as a provider with Laravel Socialite.

Example Redirecting to Discord

In your controller, use the Socialite facade to redirect the user to the Discord authentication page:

Handling the Callback

Once the user authorizes the app, Discord will redirect the user back to your application's callback URL. You can handle the callback and retrieve user information as follows:

Advanced Features

Custom Scopes

To request with custom scopes, you can use the setScopes method:

Adding Permissions

To request additional permissions, you can use the withPermissions method:

Bot Scopes

If you're working with a bot, you can use asBot to bot scope instead default identify scope:

Specify Guild

To add the guild_id= parameter to the Discord authorization URL, use the withGuildId method:

Consent Prompt

To add the prompt=none parameter to the Discord authorization URL, use the withConsent method:

License

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

More Information

For more information about Discord OAuth, please visit the Discord OAuth2 Documentation. For more information about Socialite, please visit the Socialite Documentation.

Issues

For any issues, feel free to open a ticket on the GitHub repository.

Made with love, I hope it helps someone :)

All versions of discord-socialite-provider with dependencies

PHP Build Version
Package Version
Requires laravel/socialite Version ^5.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kayckmatias/discord-socialite-provider contains the following files

Loading the files please wait ....