PHPackages                             wrat/wrat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. wrat/wrat

ActiveSdk[Authentication &amp; Authorization](/categories/authentication)

wrat/wrat
=========

Lightweight superfast SDK for implementing oAuth2 authentication system in WordPress REST API

v3.0.2(4y ago)16MITPHP

Since Dec 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/imjafran/wrat)[ Packagist](https://packagist.org/packages/wrat/wrat)[ RSS](/packages/wrat-wrat/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (3)Used By (0)

**W**ordPress **R**EST **A**uth **T**oken.

Lightweight SDK to implement oAuth2 authentication system for WordPress REST API.

*Table of contents*

- [Features](#features)
- [Install](#install)
- [Usages](#usages)
    - [Access token](#access-token)
    - [Verify](#verify)
    - [Authentication](#authentication)
    - [Refresh token](#refresh-token)
- [List of Error Codes](#list-of-error-codes)
- [Customization](#customization)
    - [Action hooks](#action-hooks)
    - [Filter hooks](#filter-hooks)
    - [Functions](#functions)
- [Contribution](#contribution)

Features
========

[](#features)

- Easy to learn, easy to use
- Opensource
- Forever free
- Lightweight (Less than 10kb)
- No dependency
- Supports [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
- Full customizable

Install
=======

[](#install)

[**Using composer**](https://packagist.org/packages/wrat/wrat)

Open your bash/terminal and run the command

```
composer require wrat/wrat
```

[**Clone from Git**](https://github.com/imjafran/wrat/)

Open you terminal in targeted directory and run the commans

```
git clone https://github.com/imjafran/wrat.git ./
```

**Manual installation**

- [Download as zip](https://github.com/imjafran/wrat/archive/refs/heads/master.zip)
- Extract into your project directory
- Require `wrat.php` file

**Initializing WRAT**

```
