PHPackages                             chris-moreton/oauth-server-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. chris-moreton/oauth-server-php-client

ActiveLibrary

chris-moreton/oauth-server-php-client
=====================================

API Wrapper for the Netsensia authentication server

v0.2.8(9y ago)01.5kMITPHPPHP &gt;=7.0

Since Feb 23Pushed 9y ago2 watchersCompare

[ Source](https://github.com/chris-moreton/oauth-server-php-client)[ Packagist](https://packagist.org/packages/chris-moreton/oauth-server-php-client)[ RSS](/packages/chris-moreton-oauth-server-php-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (16)Used By (0)

oAuth2 Server PHP Client
========================

[](#oauth2-server-php-client)

[![Build Status](https://camo.githubusercontent.com/373a28fc94f110aebc3a40a2624f0298b72613b56b5d99f5b6b8af5c660dc781/68747470733a2f2f7472617669732d63692e6f72672f63687269732d6d6f7265746f6e2f6f617574682d7365727665722d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/chris-moreton/oauth-server-php-client)

This is a PHP client for the Netsensia authentication server (chris-moreton/oauth-server).

Add to project using Composer
-----------------------------

[](#add-to-project-using-composer)

composer require chris-moreton/oauth-server-php-client

Usage
-----

[](#usage)

```
$client = new Client($apiUri, $token);

```

oAuth2 Password grant
---------------------

[](#oauth2-password-grant)

```
$response = $client->passwordGrant($email, $password, $clientId, $clientSecret, $scope)

```

Client Credentials Grant
------------------------

[](#client-credentials-grant)

```
$response = $client->clientGrant($clientId, $clientSecret, $scope)

```

Password Check
--------------

[](#password-check)

```
$response = $client->verifyPassword($email, $password)

```

Create User
-----------

[](#create-user)

```
$response = $client->createUser(['email'=>'test@example.com', 'name'=>'Test', 'password'=>'secret'])

```

Get User Details
----------------

[](#get-user-details)

```
$response = $client->getUserDetails($userId)

```

Update User
-----------

[](#update-user)

```
$response = $client->updateUserDetails($userId, ['email'=>'test@example.com', 'name'=>'Test', 'password'=>'secret', 'remember_token'=>'abcd1234'])

```

Get User Token Details
----------------------

[](#get-user-token-details)

```
$response = $client->userTokenDetails()

```

Get Scopes from Client Credentials Token
----------------------------------------

[](#get-scopes-from-client-credentials-token)

```
$response = $client->tokenScopes()

```

Development
-----------

[](#development)

### Clone the repo and compose

[](#clone-the-repo-and-compose)

```
git clone git@github.com:chris-moreton/oauth-server-php-client
cd oauth-server-php-client
composer install

```

### Run the tests

[](#run-the-tests)

```
cp spec/.env.example spec/.env

```

and fill in the values.

Then you can run the tests:

```
bin/phpspec run --format=pretty -vvv --stop-on-failure

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

14

Last Release

3322d ago

PHP version history (2 changes)v0.0.1PHP &gt;=5.4.0

v0.2.6PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/eebfc021e9dda57fc4c0e9b2aacd9d723deeef3263dff122bb94dd2a1eb954d2?d=identicon)[Chrismo2012](/maintainers/Chrismo2012)

---

Top Contributors

[![chris-moreton](https://avatars.githubusercontent.com/u/1436601?v=4)](https://github.com/chris-moreton "chris-moreton (34 commits)")

### Embed Badge

![Health badge](/badges/chris-moreton-oauth-server-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/chris-moreton-oauth-server-php-client/health.svg)](https://phpackages.com/packages/chris-moreton-oauth-server-php-client)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[netflie/whatsapp-cloud-api

The first PHP SDK to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform

640431.7k4](/packages/netflie-whatsapp-cloud-api)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
