PHPackages                             authwave/php-client - 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. authwave/php-client

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

authwave/php-client
===================

PHP client library to implement Authwave in your application

v0.3.0(6y ago)0627↓50%[4 issues](https://github.com/Authwave/php-client/issues)[1 PRs](https://github.com/Authwave/php-client/pulls)PHPPHP &gt;=7.4CI passing

Since Feb 27Pushed 3mo ago2 watchersCompare

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

READMEChangelog (7)Dependencies (3)Versions (15)Used By (0)

PHP client library to implement Authwave in your application
============================================================

[](#php-client-library-to-implement-authwave-in-your-application)

Authwave is an open source Identity-as-a-Service product that can be self-hosted. Using Authwave allows your application to offer authentication with great user experience and security, without you having to program any of the authentication yourself.

To use this repository, your application must be registered to obtain a client key (see example below). This can be done from  or from your own instance of [Authwave Provider](https://github.com/Authwave/provider) if you are self-hosting.

Basic usage
-----------

[](#basic-usage)

With the following PHP code below, you can display a log in button that, when clicked, changes to a log out button and displays a greeting to the logged in user.

```
