Download the PHP package omines/oauth2-gitlab without Composer
On this page you can find all versions of the php package omines/oauth2-gitlab. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download omines/oauth2-gitlab
More information about omines/oauth2-gitlab
Files in omines/oauth2-gitlab
Package oauth2-gitlab
Short Description GitLab OAuth 2.0 Client Provider for The PHP League OAuth2-Client
License MIT
Informations about the package oauth2-gitlab
GitLab Provider for OAuth 2.0 Client
This package provides GitLab OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use composer:
Usage
Usage is similar to the basic OAuth client, using \Omines\OAuth2\Client\Provider\Gitlab
as the provider.
Authorization Code Flow
Managing Scopes
When creating your GitLab authorization URL, you can specify the state and scopes your application may authorize.
If neither are defined, the provider will utilize internal defaults .
Performing API calls
Install m4tthumphrey/php-gitlab-api
to interact with the
Gitlab API after authentication. Either connect manually:
Or call the getApiClient
method on GitlabResourceOwner
which does the same implicitly.
Contributing
Please see CONTRIBUTING for details.
Credits
This code is a modified fork from the official Github provider adapted for Gitlab use, so many credits go to Steven Maguire.
Legal
This software was developed for internal use at Omines Full Service Internetbureau
in Eindhoven, the Netherlands. It is shared with the general public under the permissive MIT license, without
any guarantee of fitness for any particular purpose. Refer to the included LICENSE
file for more details.
All versions of oauth2-gitlab with dependencies
ext-mbstring Version *
ext-intl Version *
league/oauth2-client Version ^2.4.1