Download the PHP package layered/oauth2-wordpress-com without Composer
On this page you can find all versions of the php package layered/oauth2-wordpress-com. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download layered/oauth2-wordpress-com
More information about layered/oauth2-wordpress-com
Files in layered/oauth2-wordpress-com
Package oauth2-wordpress-com
Short Description WordPress.com OAuth 2.0 Client Provider for League OAuth2 Client
License MIT
Informations about the package oauth2-wordpress-com
WordPress.com provider for OAuth 2.0 Client
This package provides WordPress.com OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Requirements
This package uses WordPress.com Connect to authenticate users with WordPress.com accounts.
Requirements to use this package:
- PHP >= 5.6
- a WordPress client ID and client secret, referred to as
{wordpress-client-id}
and{wordpress-client-secret}
. Follow the WordPress Apps instructions to create the required credentials
Installation
Use composer to install:
Usage
Usage is the same as The League's Abstract OAuth client, using \Layered\OAuth2\Client\Provider\WordPressCom
as the provider.
Authorization Code Flow
Available Options
The WordPressCom
provider has the following options:
blog
can be a blog URL or blog ID for a WordPress.com blog or Jetpack sitescope
to request access to additional data
Scopes
When creating the authorization URL, specify the scope your application may authorize. Available scopes for WordPress.com:
auth
for authentication only, grants access to /me endpointsglobal
access to all user's sites and data- '' (empty) access to a single blog, specified in request or chosen by user
Get access to user profile
Get access to user profile & a single blog
Testing
Credits
License
The MIT License (MIT). Please see License File for more information.