PHPackages                             gwsn/bizhost-auth-sdk - 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. gwsn/bizhost-auth-sdk

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

gwsn/bizhost-auth-sdk
=====================

Authenticate user against Bizhost Auth API

1.0.5(2y ago)0511MITPHPPHP ^8.1

Since May 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/gwsn/bizhost-auth-sdk)[ Packagist](https://packagist.org/packages/gwsn/bizhost-auth-sdk)[ Docs](https://github.com/gwsn/bizhost-auth-sdk)[ RSS](/packages/gwsn-bizhost-auth-sdk/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (3)Versions (8)Used By (1)

Bizhost Authentication SDK
==========================

[](#bizhost-authentication-sdk)

For the Symfony Bundle see the package: [gwsn/bizhost-auth-sdk](https://github.com/gwsn/bizhost-auth-sdk)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require gwsn/bizhost-auth-sdk
```

When using in symfony go to the bundle instead
----------------------------------------------

[](#when-using-in-symfony-go-to-the-bundle-instead)

[gwsn/bizhost-auth-bundle](https://github.com/gwsn/bizhost-auth-bundle)

First configuration to start usage
----------------------------------

[](#first-configuration-to-start-usage)

You need to request a new clientId and clientSecret for the application

1. Go to `bizhost auth portal`
2. Go to `Applications`
3. Go to `Register new application` and follow the wizard.
    (give it a name like mine is 'example-app-authentication')
4. When created the application is created write down the following details
5. 'Application Identifier', this will be your `$clientId`
6. 'Application Secret', this will be your `$clientSecret`(Make sure you write this one down as it will be only shown once)

    Example:

    - Auth meta url: `https://auth.bizhost.nl/.well-known/oauth-authorization-server`

Basic setup for the Bizhost Authentication SDK
----------------------------------------------

[](#basic-setup-for-the-bizhost-authentication-sdk)

```
$apiUrl = 'https://auth-test.bizhost.nl';
$clientId = 'your-client-id';
$clientSecret = 'your-client-secret';
$redirectUrl = 'http://localhost:8000/code-flow.php';
$issuerMetaDataPath = '/.well-known/oauth-authorization-server';

$config = new AuthClientConfig(
    apiUrl: $apiUrl,
    clientId: $clientId,
    clientSecret: $clientSecret,
    redirectUrl: $redirectUrl,
    issuerMetaDataPath: $issuerMetaDataPath
);

$authService = new AuthenticateService(
    $config,
);
```

For more information see the examples directory

Testing
-------

[](#testing)

```
$ composer run-script test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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 ~0 days

Total

6

Last Release

785d ago

### Community

Maintainers

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

---

Top Contributors

[![jnovermars](https://avatars.githubusercontent.com/u/4355811?v=4)](https://github.com/jnovermars "jnovermars (19 commits)")

---

Tags

sdkAuthenticationoauth2iamgwsnbizhost

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gwsn-bizhost-auth-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/gwsn-bizhost-auth-sdk/health.svg)](https://phpackages.com/packages/gwsn-bizhost-auth-sdk)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k294.2M220](/packages/google-auth)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2287.5k3](/packages/kinde-oss-kinde-auth-php)

PHPackages © 2026

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