oauth 2.0 - Using OAuth2 by thephpleague in PHP/Slim

one text

I would like to have an authorization added to my project.

I found this library on the internet: thephpleague/oauth2. However, after reading it's documentation I can't realize how to implement it in my project. I just want to have a basic authorization, but I struggle with implementing this library in my project. I don't know from where to start from.

Also, I'm a beginner in PHP/Slim ( and now trying to learn about authorization ) and any step-by-step guide or any other help would be nice.

Source