Ana Sayfa / Kod ve Scriptler / KeyWarden - License Manager PHP Script

KeyWarden - License Manager PHP Script

Koltuk sınırları, son kullanma, çevrimdışı doğrulama ve bir REST API ile yazılım lisans anahtarları düzenleyin.

  • Yayın tarihi10 Kasım 2026
  • Nerede çalışırPHP 8.2, PHP 8.3, PHP 8.4
  • VeritabanıMySQL 8.0, SQLite 3.x
  • Paket içeriği.php, .css, .json, .svg, .sql, .md, .yml/.yaml, composer.json, Dockerfile, JavaScript .js
  • Son güncelleme16 Kasım 2026
  • Canlı demoVar
KeyWarden - License Manager PHP Script

Overview

License keys with activations, seat limits, expiry, offline signed validation and a REST API. KeyWarden is a complete, self-hosted license Manager PHP Script in plain PHP 8.2 — no framework, no Composer runtime dependencies and no build step. Upload the files, run the browser installer, choose SQLite or MySQL, and you are live in minutes.

> Software licensing that works offline: Ed25519-signed payloads, seat-limited > activations, and a signed revocation blocklist. Self-hosted PHP 8.2+.

What's inside

  • Products — Code, default seats, feature list
  • Issue — 1–500 keys per batch, optional customer, email and expiry
  • Key format — 4 groups of 4 from an unambiguous alphabet; the last character is a checksum
  • Payload — Canonical JSON (sorted keys) signed with Ed25519; base64 in the DB and API
  • Verifiers — tools/verify-license.php and tools/verify-license.mjs — copy into your product
  • Activations — Domain + fingerprint, seat limit enforced, idempotent per fingerprint, deactivatable
  • Revocation — Revoking re-signs a versioned blocklist; offline checks honour it
  • API — Bearer-token JSON for activate/deactivate/license/blocklist

Why KeyWarden

  • Ed25519-signed license payloads with a public-key verifier shipped for PHP, Node and Python — activation does not need a phone-home.
  • Per-license activation limits (domain/fingerprint) with reset, audit and revocation list distributed as a signed blocklist.
  • REST API + webhooks, bulk generation, expiry and feature flags embedded in the signed payload.

Built to last

  • No framework and no runtime Composer packages — the ZIP is the whole application.
  • SQLite for a zero-config install and MySQL/MariaDB for production, from one migration pair.
  • 15 automated tests covering the money, state-machine, uniqueness and permission rules.
  • English and Chinese interface, dark mode, WCAG AA focus states, usable down to 360 px.
  • CSRF on every POST, prepared statements only, output escaped at the template.

Requirements

  • PHP 8.2 or newer with PDO (pdo_sqlite or pdo_mysql), mbstring, json, openssl and fileinfo.
  • Apache with mod_rewrite or Nginx; document root pointed at public/.
  • SQLite 3 (bundled with PHP) or MySQL 8 / MariaDB 10.4+.
  • Write access to the application root and storage/.

Quick start: upload the ZIP, point the document root at public/, open /install/ and follow the four steps. Docker users can run docker compose up -d --build instead and open the same installer.

Features

• Products — Code, default seats, feature list • Issue — 1–500 keys per batch, optional customer, email and expiry • Key format — 4 groups of 4 from an unambiguous alphabet; the last character is a checksum • Payload — Canonical JSON (sorted keys) signed with Ed25519; base64 in the DB and API • Verifiers — tools/verify-license.php and tools/verify-license.mjs — copy into your product • Activations — Domain + fingerprint, seat limit enforced, idempotent per fingerprint, deactivatable • Revocation — Revoking re-signs a versioned blocklist; offline checks honour it • API — Bearer-token JSON for activate/deactivate/license/blocklist • Self-hosted PHP 8.2 application with no framework and no runtime Composer dependencies • SQLite and MySQL/MariaDB support from one migration pair, with a four-step browser installer • 9 database tables, 21 routes and 15 automated tests • English and Chinese interface, dark mode, WCAG AA focus states, mobile down to 360 px • CSRF protection, prepared statements and escaped output throughout

Requirements

• PHP 8.2 or newer (tested on 8.2, 8.3 and 8.4) • PDO with pdo_sqlite or pdo_mysql • mbstring, json, openssl and fileinfo extensions • Apache with mod_rewrite, or Nginx with a front-controller rule • SQLite 3, or MySQL 8.0 / MariaDB 10.4 and newer • Write access to the application root and storage/ directory • A modern browser; no Node.js, Composer or build tools required