Download the PHP package dirushan/githublogin without Composer
On this page you can find all versions of the php package dirushan/githublogin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dirushan/githublogin
More information about dirushan/githublogin
Files in dirushan/githublogin
Package githublogin
Short Description User easliy login used github account
License MIT
Informations about the package githublogin
Sure, here are the steps to integrate GitHub OAuth with Laravel using Laravel Socialite and dirushan/githublogin:
-
Install Laravel Socialite: First, install Laravel Socialite via Composer:
-
Create a GitHub OAuth App:
- Go to GitHub and navigate to
Settings
>Developer settings
>OAuth Apps
. - Register a new OAuth application with your application's details:
- Application Name: Your application's name.
- Homepage URL: URL of your application.
- Authorization callback URL:
http://127.0.0.1:8000/callback
- Note down the Client ID and Client Secret provided by GitHub.
- Go to GitHub and navigate to
-
Configure Laravel Application:
-
Update your
.env
file with the GitHub credentials: - Add the GitHub configuration to
config/services.php
:
-
-
Install dirushan/githublogin: Install the GitHub Login package via Composer:
-
Run Database Migrations:
Ensure this step is done to create necessary tables for user data storage.
-
Define Route: Define a route to handle GitHub login:
- Set Minimum Stability:
If needed, set
"minimum-stability": "dev"
in yourcomposer.json
to ensure compatibility with dev packages.
After completing these steps, you should be able to initiate GitHub OAuth login by accessing /github
route in your Laravel application. This setup allows users to authenticate via GitHub and interact with their data through your application. Adjustments may be necessary based on Laravel version and specific package requirements.