Search by

php-sso / oauth-server

waltertamboer

OAuth 2.0 and OpenID Connect authorization server for PSR-7 and PSR-15 applications, without third-party runtime dependencies.

Package info

github.com/php-sso/oauth-server

pkg:composer/php-sso/oauth-server

Statistics

Installs: 58

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-21 15:38 UTC

This package is auto-updated.

Last update: 2026-11-22 00:31:35 UTC


README

An OAuth 2.0 and OpenID Connect authorization server for PSR-7 / PSR-15 applications.

  • PSR-7 messages in and out, PSR-15 request handlers and middleware: it fits any framework.
  • No third-party runtime dependencies: only the PSR interface packages and PHP's own openssl and json.
  • Storage, people, clients and keys are interfaces you implement; nothing here knows about your database.
  • Small on purpose, and strict by default.

Install

composer require php-sso/oauth-server

PHP 8.2 or newer, with ext-json and ext-openssl.

Documentation

The documentation is at https://php-sso.github.io/oauth-server/:

The pages are in docs/content, built with Hugo and the php-sso docs theme. Preview them with hugo server --source docs.

Develop

composer install
composer check      # PHPStan (level max, strict rules, no baseline) and PHPUnit

Tests follow Arrange, Act, Assert, one file per method: tests/unit/PhpSso/OAuthServer/{Namespace}/{Class}/{Method}Test.php.

License

MIT. See LICENSE.