Download the PHP package cboxdk/license without Composer

On this page you can find all versions of the php package cboxdk/license. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package license

Cbox License

Framework-agnostic, offline license core for PHP 8.4+. It mints and verifies compact, signed license artifacts — an issuer holds an Ed25519 private key and signs licenses; every consumer bundles the matching public key and verifies them fully offline, with no network call and no license server to phone home to.

It is the shared leaf that two very different sides depend on: a billing/issuer service that sells and signs licenses, and a self-hosted deployment that has to decide, on its own, whether a given feature is licensed. Both link this one package so they agree — byte for byte — on the artifact format and the verification rules.

What it is

Honest crypto

Signing and verification wrap the vetted firebase/php-jwt library over libsodium's Ed25519 — no bespoke signing. The algorithm is pinned to EdDSA on both sides: the verifier decodes with a single allowed algorithm,

which closes alg:none and algorithm-confusion downgrade attacks (a token re-signed under HS256 with the public key as the HMAC secret is rejected at decode). Keys are base64-encoded raw sodium keys.

This library is tamper-evident, not tamper-proof: a determined operator with control of their own runtime can always patch the check out. The goal is a cryptographically sound, offline-verifiable licensing signal for honest deployments — not DRM.

Quickstart

1. Mint an issuer keypair (once, operator side)

2. Issue a license (billing / issuer side)

3. Verify it (self-hosted / consumer side, offline)

Verification decision order

verify() resolves a status in this fixed order, short-circuiting on the first failure:

  1. Signature (Ed25519, algorithm pinned) → SignatureInvalid on failure.
  2. Claims parse (deny-by-default) → Malformed on failure.
  3. Not-before (nbf, with skew) → NotYetValid.
  4. Expiry (exp, with skew, then grace) → within period, else InGrace (still licensed), else Expired.
  5. Deployment binding → BindingMismatch.
  6. Domain binding (only when the license pins a domain) → BindingMismatch.
  7. Revocation (only when a list is supplied) → Revoked.

Any unexpected error is caught and returned as Unlicensed — verify() never throws.

Revocation

Revocation lists are themselves signed (same key, same pinned algorithm) and verified offline. They are fail-open: a missing, malformed, or tampered list is treated as "no revocations known" rather than bricking a legitimately licensed deployment. See docs/core-concepts/revocation.md.

Where this sits

This package is UI-free primitives. If you want a finished, deployable identity platform built on top of it rather than assembling the app layer yourself, that lives in a separate application package that composes this core — this library does not ship it.

Requirements

PHP ^8.4 (tested on 8.4 and 8.5), ext-sodium, and firebase/php-jwt ^7.1. See docs/requirements.md.

Development

License

MIT — see LICENSE.


All versions of license with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-sodium Version *
firebase/php-jwt Version ^7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cboxdk/license contains the following files

Loading the files please wait ...