use php-oauth-lib-common for Scope class