All projects

Open source · 2025 Project 10 of 20

PHP OAuth

A framework-agnostic OAuth 2 library for PHP.

At a glance

Role
Author
Period
2025
Status
Live
Technologies
4 technologies

A lightweight OAuth 2 library that does not depend on any framework. It includes a server with the client credentials, authorization code and refresh token grants, token storage in a database through PDO or in the session, and providers for Google, Microsoft and Keycloak.

Design

  • Interfaces instead of hard-wired classes. Grants and storage sit behind interfaces, so another grant type or a custom storage can be added without touching the core.
  • A shared base for providers. Google, Microsoft and Keycloak all extend the same abstract provider.
  • JWT. Access tokens can also be issued as JWT (firebase/php-jwt).

Built with

  • PHP
  • OAuth 2.0
  • JWT
  • PDO

Keyboard shortcuts.

Keyboard shortcuts for this site. They stay quiet while you type into a form.

This site

?
This help
g
12-column grid, components and page metrics
d
Appearance: system, light, dark, Linkin Park
Ctrl P
Print the CV instead of the website
Esc
Close the dialog or the grid

The blue dot after the name can be grabbed and thrown.

Linkin Park

l setlist lp
The setlist, songs by album
papercut
The page tears like paper
numb
The site goes numb for a few seconds
faint
The page faints and comes round
meteora
A meteor shower and a direct hit on the dot after the name
fromzero emily
The site fades down to zero and is reborn, with thanks to Emily Armstrong
concert koncert
Concert: the site runs through the colours of every album
castleofglass
The page turns to glass, cracks and shatters
iridescent
Headings and dots shimmer in rainbow colours
breakingthehabit
Whatever is on screen falls apart and snaps back
intheend
End credits, like at the cinema
victim morethevictim
The site breaks up in a glitch and stays distorted (until a reload, another word or Esc)
finalmasquerade
A masquerade mask over the whole site, the camera flies through an eye
lost
Off to the 404 page

Type the words anywhere outside the form; case and spaces do not matter. With reduced motion you get a short note instead.

On a phone, five taps on the blue dot after the name open the setlist.