Oauth2 server implementation

Hi, I have been looking for a oauth2 server library to make an api with oauth2 security, but right now I have only found the Filsh/yii2-oauth2-server extension, which… kinda works, but it has an awful documentation, support and it’s not very well implemented in general to make it work decently without a lot of extra additions. Is there any other library that could be a little better? Thanks