PHPackages                             frumbert/coursesuitevalidator - 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. [API Development](/categories/api)
4. /
5. frumbert/coursesuitevalidator

ActiveLibrary[API Development](/categories/api)

frumbert/coursesuitevalidator
=============================

CourseSuite API Validator

027PHP

Since Dec 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/frumbert/coursesuitevalidator)[ Packagist](https://packagist.org/packages/frumbert/coursesuitevalidator)[ RSS](/packages/frumbert-coursesuitevalidator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

validates token or apikey against an endpoint
=============================================

[](#validates-token-or-apikey-against-an-endpoint)

At its simplest, this class looks at the value of "token" or "apikey" and validates it against the configured server, which is set via environment variables in the web server.

```
composer require frumbert/coursesuitevalidator

```

then ensure the web server (or host script) sets these environment variables

```
HOME_URL            https://www.your-app-domain.com/
AUTHAPI_URL         https://www.coursesuite.ninja/api/validate/your-app-name/{hash}/
AUTHAPI_USER        (digest-username)
AUTHAPI_PASSWORD    (digest-password)

```

The {hash} value will be string-replaced with the "hash" value from the querystring supplied

then the code

```
require '../vendor/autoload.php';
$verifier = (new CoursesuiteValidator(false,true))->Validate($_GET);

if ($verifier->licence->remaining < 1) {
    header("location: " . $verifier->home . "in-use");
    die();
}

if ($verifier->licence->tier < 1) {
    header("location: " . $verifier->home . "bad-tier");
    die();
}

if (!$verifier->is_valid()) {
 	die("authentication failed or was not understood.");
}
// include "rest_of_app.php";

```

Returned as php object (default values)
=======================================

[](#returned-as-php-object-default-values)

```
{
    valid: false,
    licence: {
        tier: 0,
        seats: 1,
        remaining: 1
    },
    code: {
        minified: true,
        debug: false
    },
    api: {
        bearer: null,
        publish: "",
        header: {
            html: "",
            css: ""
        },
        template: ""
    },
    user: {
        container: "",
        email: ""
    },
    addons: [],
    home: ""
}

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e921d52c98bc978ca7293c9ac7391f6e73df7d1efbd813b7e5eba55a09b5478?d=identicon)[frumbert](/maintainers/frumbert)

---

Top Contributors

[![frumbert](https://avatars.githubusercontent.com/u/592257?v=4)](https://github.com/frumbert "frumbert (14 commits)")

### Embed Badge

![Health badge](/badges/frumbert-coursesuitevalidator/health.svg)

```
[![Health](https://phpackages.com/badges/frumbert-coursesuitevalidator/health.svg)](https://phpackages.com/packages/frumbert-coursesuitevalidator)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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