Skip to content

Releases: Clerk-Global-LTD/validpin-client-php

v1.0.0 — Initial Release

Choose a tag to compare

@265barancan 265barancan released this 13 Aug 22:15

v1.0.0 — Initial Release
Official Validpin PHP client — zero-dependency, domain-locked license verification against the Validpin (https://validpin.com) platform.
✨ Features

  • Domain locking — verifies licenses against the exact domain they were issued for (auto-detected from HTTP_HOST/SERVER_NAME, overridable)
  • 24-hour cache — cache_enabled: true (default) avoids re-hitting the API on every request
  • enforce() mode — stops execution on invalid/expired licenses; ideal for backend bootstrapping
  • Configurable endpoint — api_url supports self-hosted / local Validpin-compatible servers
  • Zero dependencies — plain cURL, no runtime packages
  • PSR-4 autoloading — Validpin\ValidpinClient via Composer
  • Phar distribution — single-file validpin.phar for installs without Composer
    📦 Installation
    composer require validpin/client
    Or drop-in the validpin.phar asset:
    require 'validpin.phar';
    $client = new \Validpin\ValidpinClient('lcs_your_api_key');
    🚀 Quick Start
'my-customer-site.com', ]); if ($client->verify('A1B2-C3D4-E5F6-G7H8')) { echo "Access Granted!\n"; } else { echo "Access Denied: " . $client->getLastError() . "\n"; } 🗂️ Assets - validpin.phar — single-file build of the client (14 kB) 📄 Links - Documentation: README (https://github.com/Clerk-Global-LTD/validpin-client-php) - Packagist: https://packagist.org/packages/validpin/client - Issues: https://github.com/Clerk-Global-LTD/validpin-client-php/issues