This repository provides an example implementation of Riot Games' RSO (Riot Sign On) using PHP. The primary goal of this project is to demonstrate how the RSO system can be integrated into a PHP application.
It is based on various composer packages including but not limited to guzzlehttp/guzzle:7.7.0
, kdefives/oauth2-riot:v1.0.0
, league/oauth2-client:2.7.0
.
- Special recognition to kdefives/oauth2-riot for serving as an excellent guide and resource.
Ensure that you have PHP 5.6.0 or above installed before proceeding.
Follow these steps for setting up this project on your local system.
-
Clone the repository:
git clone https://github.com/REFUZIION/riot-php-rso-example.git .
-
Install the necessary composer packages:
composer install
-
Update the config.php with your own details:
const BASE_URI = 'localhost.test'; const RIOT_CLIENT_ID = 'YOUR_CLIENT_ID_HERE'; const RIOT_CLIENT_SECRET = 'YOUR_CLIENT_SECRET_HERE';
For more technical details and usage explanations, refer to the project's documentation.
If you have any more changes you would like to make, please feel free to ask. I'm here to assist you.